Update postinst

This commit is contained in:
dpeca 2020-01-04 21:30:54 +01:00 committed by GitHub
commit 2106a46d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,11 @@ fi
update-rc.d vesta defaults >/dev/null
invoke-rc.d vesta start || true
# Run triggers only on updates
if [ ! -e "/usr/local/vesta/data/users/admin" ]; then
exit
fi
echo "=== Restarting vesta ==="
service vesta stop
service vesta start