HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/alt-common-release.postinst
#!/bin/sh

ALT_COMMON_REPO_PATH="/etc/apt/sources.list.d/alt-common-els.list"

OS_CODENAME=$(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2 | sed -e 's@"@@g')
OS_VER=$(grep '^VERSION_ID=' /etc/os-release | cut -d'=' -f2 | sed -e 's@"@@g')
OS_NAME=$(grep '^ID=' /etc/os-release | cut -d'=' -f2 | sed -e 's@"@@g')

sed -i "s/__CODENAME__/${OS_CODENAME}/g" "$ALT_COMMON_REPO_PATH"
sed -i "s/__VER__/${OS_VER}/g" "$ALT_COMMON_REPO_PATH"
sed -i "s/__NAME__/${OS_NAME}/g" "$ALT_COMMON_REPO_PATH"