Update postinst

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

View file

@ -5,6 +5,7 @@ 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 ==="
echo "$version" > /usr/local/vesta/version.txt
exit
fi
@ -47,5 +48,6 @@ systemctl restart exim4
version=$(curl -s http://c.myvestacp.com/latest.txt?updated)
version=${version:6}
echo "=== myVesta $version updated ==="
echo "$version" > /usr/local/vesta/version.txt
exit 0