Browse Source

Use OS_CODENAME

Ernesto Nicolás Carrea 5 years ago
parent
commit
fc85f9c901
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/setup/init.inc

+ 2 - 2
bin/setup/init.inc

@@ -30,13 +30,13 @@ hestia_setup_init() {
     if [ "$OS_BASE" = 'debian' ]; then
     if [ "$OS_BASE" = 'debian' ]; then
         cat > /etc/apt/sources.list.d/hestia.list <<EOL
         cat > /etc/apt/sources.list.d/hestia.list <<EOL
 # This file was added by Hestia Control Panel.
 # This file was added by Hestia Control Panel.
-deb https://apt.hestiacp.com/ $codename main
+deb https://apt.hestiacp.com/ $OS_CODENAME main
 EOL
 EOL
         apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
         apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
     elif [ "$OS_BASE" = 'ubuntu' ]; then
     elif [ "$OS_BASE" = 'ubuntu' ]; then
         cat > /etc/apt/sources.list.d/hestia.list <<EOL
         cat > /etc/apt/sources.list.d/hestia.list <<EOL
 # This file was added by Hestia Control Panel.
 # This file was added by Hestia Control Panel.
-deb https://apt.hestiacp.com/ $codename main
+deb https://apt.hestiacp.com/ $OS_CODENAME main
 EOL
 EOL
         apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
         apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A189E93654F0B0E5 > /dev/null 2>&1
     elif [ "$OS_BASE" = 'rhel' ]; then
     elif [ "$OS_BASE" = 'rhel' ]; then