Browse Source

Automatically install filemanager on new systems and during upgrades.

Raphael Schneeberger 5 years ago
parent
commit
0235154d55
3 changed files with 26 additions and 0 deletions
  1. 10 0
      install/hst-install-debian.sh
  2. 10 0
      install/hst-install-ubuntu.sh
  3. 6 0
      install/upgrade/versions/latest.sh

+ 10 - 0
install/hst-install-debian.sh

@@ -1677,6 +1677,16 @@ if [ "$fail2ban" = 'yes' ]; then
 fi
 
 
+#----------------------------------------------------------#
+#                  Configure FileManager                   #
+#----------------------------------------------------------#
+
+if [ "$nginx" = 'yes' ]; then
+    echo "(*) Configuring Filegator FileManager..."
+    source HESTIA_INSTALL_DIR/filemanager/install-fm.sh > /dev/null 2>&1
+fi
+
+
 #----------------------------------------------------------#
 #                       Configure API                      #
 #----------------------------------------------------------#

+ 10 - 0
install/hst-install-ubuntu.sh

@@ -1632,6 +1632,16 @@ if [ "$fail2ban" = 'yes' ]; then
 fi
 
 
+#----------------------------------------------------------#
+#                  Configure FileManager                   #
+#----------------------------------------------------------#
+
+if [ "$nginx" = 'yes' ]; then
+    echo "(*) Configuring Filegator FileManager..."
+    source HESTIA_INSTALL_DIR/filemanager/install-fm.sh > /dev/null 2>&1
+fi
+
+
 #----------------------------------------------------------#
 #                       Configure API                      #
 #----------------------------------------------------------#

+ 6 - 0
install/upgrade/versions/latest.sh

@@ -76,4 +76,10 @@ if [ "$WEB_SYSTEM" = "apache2" ]; then
     if [ ! -e "/etc/apache2/mods-enabled/hestia-event.conf" ]; then
         cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
     fi
+fi
+
+# Install Filegator FileManager during upgrade
+if [ -e "/etc/nginx/nginx.conf" ]; then
+    echo "(*) Configuring Filegator FileManager..."
+    source HESTIA_INSTALL_DIR/filemanager/install-fm.sh > /dev/null 2>&1
 fi