mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 13:01:56 -07:00
Added codename var
This commit is contained in:
parent
47ba7d763e
commit
5979d96be7
1 changed files with 2 additions and 1 deletions
|
@ -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 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue