We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c69da commit 4334e99Copy full SHA for 4334e99
src/deb/nginx/postinst
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
set -e
4
@@ -9,3 +9,16 @@ fi
9
# Touch and set permisions on default log files on installation
10
update-rc.d hestia defaults >/dev/null
11
invoke-rc.d hestia start || true
12
+
13
+# Run triggers only on updates
14
+if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
15
+ exit
16
+fi
17
18
+# Load hestia.conf
19
+source /usr/local/hestia/conf/hestia.conf
20
21
+# Reset backend port
22
+if [ ! -z "$BACKEND_PORT" ]; then
23
+ /usr/local/hestia/bin/v-change-sys-port $BACKEND_PORT
24
0 commit comments