Explorar o código

fix for new installs

Serghey Rodin %!s(int64=9) %!d(string=hai) anos
pai
achega
6d17a5b610
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/deb/vesta/postinst

+ 5 - 0
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