Răsfoiți Sursa

Load Hestia path on update

Jaap Marcus 4 ani în urmă
părinte
comite
756a3c58ff
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      src/deb/hestia/postinst

+ 6 - 0
src/deb/hestia/postinst

@@ -4,6 +4,12 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
     exit
 fi
 
+if [ -z "$HESTIA" ]; then
+    export HESTIA='/usr/local/hestia'
+    PATH=$PATH:/usr/local/hestia/bin
+    export PATH
+fi
+
 ###############################################################
 #                Initialize functions/variables               #
 ###############################################################