Raphael Schneeberger 7 лет назад
Родитель
Сommit
4c39df4bbf
2 измененных файлов с 44 добавлено и 0 удалено
  1. 13 0
      src/deb/hestia/control
  2. 31 0
      src/deb/hestia/postinst

+ 13 - 0
src/deb/hestia/control

@@ -0,0 +1,13 @@
+Source: hestia
+Package: hestia
+Priority: optional
+Version: 0.9.8-22
+Section: admin
+Maintainer: HestiaCP <info@hestiacp.com>
+Homepage: https://www.hestiacp.com
+Architecture: amd64
+Depends: bash, awk, sed
+Description: Hestia
+ Hestia is an open source hosting control panel.
+ Hestia has a clean and focused interface without the clutter.
+ Hestia has the latest of very innovative technologies.

+ 31 - 0
src/deb/hestia/postinst

@@ -0,0 +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
+
+exit 0