Skip to content

Commit 95a7de1

Browse files
author
Kristan Kenney
committed
Merge branch 'fix-fm-0629'
2 parents ea320fa + 78e7e60 commit 95a7de1

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

func/upgrade.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
217224
upgrade_get_version() {
218225
# Retrieve new version number for Hestia Control Panel from .deb package
219226
new_version=$(dpkg -l | awk '$2=="hestia" { print $3 }')

install/deb/filemanager/filegator/configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
$dist_config = require __DIR__.'/configuration_sample.php';
44

55
$dist_config['public_path'] = '/fm/';
6-
$dist_config['frontend_config']['app_name'] = 'Hestia FM';
7-
$dist_config['frontend_config']['logo'] = 'https://raw.githubusercontent.com/filegator/filegator/master/dist/img/logo.png';
6+
$dist_config['frontend_config']['app_name'] = 'File Manager - Hestia Control Panel';
7+
$dist_config['frontend_config']['logo'] = '../images/logo.png';
88
$dist_config['frontend_config']['editable'] = ['.txt', '.css', '.js', '.ts', '.html', '.php', '.py',
99
'.yml', '.xml', '.md', '.log', '.csv', '.conf', '.config', '.ini', '.scss', '.sh', '.env', '.example' ];
1010
$dist_config['frontend_config']['guest_redirection'] = '/login/' ;
@@ -57,7 +57,7 @@
5757
if (document.getElementsByClassName("navbar-item").length) {
5858
clearInterval(checkVueLoaded);
5959
var navProfile = document.getElementsByClassName("navbar-item profile")[0]; navProfile.replaceWith(navProfile.cloneNode(true))
60-
document.getElementsByClassName("navbar-item logout")[0].text="Back to Hestia";
60+
document.getElementsByClassName("navbar-item logout")[0].text="Exit to Control Panel \u00BB";
6161
}
6262
}, 200);
6363
</script>',

install/upgrade/versions/latest.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,9 @@ fi
134134

135135
# Install Filegator FileManager during upgrade
136136
if [ ! -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
145140
fi
146141

147142
# Enable nginx module loading

src/deb/hestia/postinst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ upgrade_start_routine
3737
# Upgrade phpMyAdmin if applicable
3838
upgrade_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
4144
upgrade_set_version
4245

0 commit comments

Comments
 (0)