Update postinst

This commit is contained in:
myvesta 2020-05-07 23:33:22 +02:00 committed by GitHub
commit c260afa4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ if [ ! -e "/usr/local/vesta/data/users/admin" ]; then
version=$(curl -s http://c.myvestacp.com/latest.txt?installed) version=$(curl -s http://c.myvestacp.com/latest.txt?installed)
version=${version:6} version=${version:6}
echo "=== myVesta $version installed ===" echo "=== myVesta $version installed ==="
echo "=== myVesta build date: $build_date"
echo "$version" > /usr/local/vesta/version.txt echo "$version" > /usr/local/vesta/version.txt
exit exit
fi fi
@ -51,6 +52,7 @@ systemctl restart exim4
version=$(curl -s http://c.myvestacp.com/latest.txt?updated) version=$(curl -s http://c.myvestacp.com/latest.txt?updated)
version=${version:6} version=${version:6}
echo "=== myVesta $version updated ===" echo "=== myVesta $version updated ==="
echo "=== myVesta build date: $build_date"
echo "$version" > /usr/local/vesta/version.txt echo "$version" > /usr/local/vesta/version.txt
exit 0 exit 0