瀏覽代碼

fix for new installs

Serghey Rodin 9 年之前
父節點
當前提交
6d17a5b610
共有 1 個文件被更改,包括 5 次插入0 次删除
  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