Serghey Rodin 12 лет назад
Родитель
Сommit
5979d96be7
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      install/vst-install.sh

+ 2 - 1
install/vst-install.sh

@@ -14,6 +14,7 @@ YUM_REPO='/etc/yum.repos.d/vesta.repo'
 arch=$(uname -i)
 arch=$(uname -i)
 os=$(cut -f 1 -d ' ' /etc/redhat-release)
 os=$(cut -f 1 -d ' ' /etc/redhat-release)
 release=$(grep -o "[0-9]" /etc/redhat-release |head -n1)
 release=$(grep -o "[0-9]" /etc/redhat-release |head -n1)
+codename="${os}_$release"
 memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
 memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
 software="nginx httpd mod_ssl mod_ruid2 mod_extract_forwarded mod_fcgid
 software="nginx httpd mod_ssl mod_ruid2 mod_extract_forwarded mod_fcgid
     php php-bcmath php-cli php-common php-gd php-imap php-mbstring php-mcrypt
     php php-bcmath php-cli php-common php-gd php-imap php-mbstring php-mcrypt
@@ -787,7 +788,7 @@ if [ "$?" -ne 0 ]; then
 fi
 fi
 
 
 # Send notification to vestacp.com
 # Send notification to vestacp.com
-wget vestacp.com/notify/?$REPO -O /dev/null
+wget vestacp.com/notify/?$codename -O /dev/null
 
 
 # Send notification to admin email
 # Send notification to admin email
 echo -e "Congratulations, you have just successfully installed \
 echo -e "Congratulations, you have just successfully installed \