From 6d17a5b610624e0531388287f4bd94e4b240581b Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 22 Nov 2016 21:37:50 +0200 Subject: [PATCH] fix for new installs --- src/deb/vesta/postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 1455ce1f..21ae5892 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -1,5 +1,10 @@ #!/bin/bash +# Run triggers only on updates +if [ ! -e "/usr/local/vesta/data/users/admin" ]; then + exit +fi + # Run SUDO trigger if [ -x "/usr/local/vesta/upd/add_sudo.sh" ]; then /usr/local/vesta/upd/add_sudo.sh