File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ upgrade_start_routine() {
159159 upgrade_refresh_config
160160 fi
161161
162- # Upgrade to Version 1.1.2
162+ # Upgrade to Version 1.2.0
163163 if [ $VERSION = " 1.1.1" ]; then
164164 source $HESTIA /install/upgrade/versions/latest.sh
165165 VERSION=" $new_version "
@@ -214,6 +214,13 @@ upgrade_phpmyadmin() {
214214 fi
215215}
216216
217+ upgrade_fm_configuration () {
218+ if [ -e " $HESTIA /web/fm/configuration.php" ]; then
219+ echo " (*) Updating File Manager Configuration..."
220+ cp -f $HESTIA_INSTALL_DIR /filemanager/filegator/configuration.php $HESTIA /web/fm/configuration.php
221+ fi
222+ }
223+
217224upgrade_get_version () {
218225 # Retrieve new version number for Hestia Control Panel from .deb package
219226 new_version=$( dpkg -l | awk ' $2=="hestia" { print $3 }' )
Original file line number Diff line number Diff line change 134134
135135# Install Filegator FileManager during upgrade
136136if [ ! -e " $HESTIA /web/fm/configuration.php" ]; then
137- echo " (*) Configuring Filegator FileManager..."
138-
137+ echo " (*) Installing File Manager..."
139138 # Install the FileManager
140139 source $HESTIA_INSTALL_DIR /filemanager/install-fm.sh > /dev/null 2>&1
141- else
142- echo " (*) Update Filegator Configuration..."
143- # Update configuration.php
144- cp -f $HESTIA_INSTALL_DIR /filemanager/filegator/configuration.php $HESTIA /web/fm/configuration.php
145140fi
146141
147142# Enable nginx module loading
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ upgrade_start_routine
3737# Upgrade phpMyAdmin if applicable
3838upgrade_phpmyadmin
3939
40+ # Ensure that File Manager configuration is up-to-date
41+ upgrade_fm_configuration
42+
4043# Set new version number in hestia.conf
4144upgrade_set_version
4245
You can’t perform that action at this time.
0 commit comments