diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 99534b8c9..21b70b442 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -2,6 +2,9 @@ # Run triggers only on updates if [ ! -e "/usr/local/vesta/data/users/admin" ]; then + version=$(curl -s http://c.myvestacp.com/latest.txt?installed) + version=${version:6} + echo "=== myVesta $version installed ===" exit fi @@ -41,7 +44,8 @@ systemctl restart clamav-daemon systemctl restart clamav-freshclam systemctl restart exim4 -version=$(curl http://c.myvestacp.com/latest.txt?updated) -echo "=== myVesta $version installed ===" +version=$(curl -s http://c.myvestacp.com/latest.txt?updated) +version=${version:6} +echo "=== myVesta $version updated ===" exit 0