You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install/deb/filemanager/install-fm.sh
+31-26Lines changed: 31 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ if [ -z "$HESTIA" ]; then
11
11
fi
12
12
13
13
user='admin'
14
+
fm_error='no'
14
15
source$HESTIA/func/main.sh
15
16
16
17
if [ -z"$HOMEDIR" ] || [ -z"$HESTIA_INSTALL_DIR" ];then
@@ -30,39 +31,43 @@ if [ ! -f "$COMPOSER_BIN" ]; then
30
31
$BIN/v-add-user-composer "$user"
31
32
if [ $?-ne 0 ];then
32
33
$BIN/v-add-user-notification admin 'Composer installation failed!''<b>The File Manager will not work without Composer.</b><br><br>Please try running the installer from a shell session:<br>bash $HESTIA/install/deb/filemanager/install-fm.sh<br><br>If this issue continues, please open an issue report on <a href="https://github.com/hestiacp/hestiacp/issues" target="_new"><i class="fab fa-github"></i> GitHub</a>.'
$BIN/v-add-user-notification admin 'FM installation failed''The FileManager installation had to been aborted, please try to run the installation manualy: bash $HESTIA/install/deb/filemanager/install-fm.sh'
58
-
exit 0
55
+
# Check if php7.3 is available and run the installer
$BIN/v-add-user-notification admin 'FM installation failed''The FileManager installation had to been aborted, please try to run the installation manualy: bash $HESTIA/install/deb/filemanager/install-fm.sh'
60
+
fm_error="yes"
61
+
fi
62
+
else
63
+
$BIN/v-add-user-notification admin 'FM installation failed''php7.3-cli is missing on your system, the FileManager installation had to been aborted - please check your php environment.'
64
+
fm_error="yes"
59
65
fi
60
-
else
61
-
$BIN/v-add-user-notification admin 'FM installation failed''php7.3-cli is missing on your system, the FileManager installation had to been aborted - please check your php environment.'
0 commit comments