Raphael Schneeberger 7 лет назад
Родитель
Сommit
d063e2349f
1 измененных файлов с 30 добавлено и 30 удалено
  1. 30 30
      src/deb/hestia/postinst

+ 30 - 30
src/deb/hestia/postinst

@@ -1,31 +1,31 @@
-#!/bin/bash
-
-# Run triggers only on updates
-if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
-    exit
-fi
-
-# Run SUDO trigger
-if [ -x "/usr/local/hestia/upd/add_sudo.sh" ]; then
-    /usr/local/hestia/upd/add_sudo.sh
-fi
-
-# Run Notification trigger
-if [ -x "/usr/local/hestia/upd/add_notifications.sh" ]; then
-    /usr/local/hestia/upd/add_notifications.sh
-fi
-
-# Run session save path trigger
-if [ -x "/usr/local/hestia/upd/fix_sessions.sh" ]; then
-    /usr/local/hestia/upd/fix_sessions.sh
-fi
-
-if [ -x /usr/local/hestia/upd/fix_nginx_auth.sh ]; then
-    /usr/local/hestia/upd/fix_nginx_auth.sh
-fi
-
-if [ -x /usr/local/hestia/upd/fix_roundcube.sh ]; then
-    /usr/local/hestia/upd/fix_roundcube.sh
-fi
-
+#!/bin/bash
+
+# Run triggers only on updates
+if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
+    exit
+fi
+
+# Run SUDO trigger
+if [ -x "/usr/local/hestia/upd/add_sudo.sh" ]; then
+    /usr/local/hestia/upd/add_sudo.sh
+fi
+
+# Run Notification trigger
+if [ -x "/usr/local/hestia/upd/add_notifications.sh" ]; then
+    /usr/local/hestia/upd/add_notifications.sh
+fi
+
+# Run session save path trigger
+if [ -x "/usr/local/hestia/upd/fix_sessions.sh" ]; then
+    /usr/local/hestia/upd/fix_sessions.sh
+fi
+
+if [ -x /usr/local/hestia/upd/fix_nginx_auth.sh ]; then
+    /usr/local/hestia/upd/fix_nginx_auth.sh
+fi
+
+if [ -x /usr/local/hestia/upd/fix_roundcube.sh ]; then
+    /usr/local/hestia/upd/fix_roundcube.sh
+fi
+
 exit 0