mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Update postinst
This commit is contained in:
parent
e3c1d0f49e
commit
2c1b1cafd4
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue