Update postinst

This commit is contained in:
myvesta 2020-05-07 21:24:40 +02:00 committed by GitHub
commit 2c1b1cafd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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