From 2c1b1cafd495f7c2d727946f7acfc675fb3dcdee Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Thu, 7 May 2020 21:24:40 +0200 Subject: [PATCH] Update postinst --- src/deb/vesta/postinst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 99534b8c..21b70b44 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