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
echo"ERROR: v-add-sys-filemanager can be run executed only by root user"
33
+
exit 10
34
+
fi
35
+
36
+
# Ensure that $HESTIA (/usr/local/hestia/) and other variables are valid.
37
+
if [ -z"$HESTIA" ];then
38
+
HESTIA="/usr/local/hestia"
39
+
fi
40
+
41
+
if [ -z"$HOMEDIR" ] || [ -z"$HESTIA_INSTALL_DIR" ];then
42
+
echo"ERROR: Environment variables not present, installation aborted."
43
+
exit 2
44
+
fi
45
+
46
+
# Ensure that Composer is installed for the user before continuing as it is a dependency of the File Manager.
47
+
if [ !-f"$COMPOSER_BIN" ];then
48
+
$BIN/v-add-user-composer "$user"
49
+
if [ $?-ne 0 ];then
50
+
$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 manually from a shell session:<br>v-add-sys-filemanager<br><br>If this continues, open an issue report on <a href="https://github.com/hestiacp/hestiacp/issues" target="_new"><i class="fab fa-github"></i> GitHub</a>.'
51
+
exit 1
52
+
fi
53
+
fi
54
+
55
+
# Ensure PHP 7.3 is installed before continuing
56
+
if [ !-f"/usr/bin/php7.3" ];then
57
+
$BIN/v-add-user-notification admin 'File Manager installation failed!''<b>Unable to proceed with installation of File Manager.</b><br><br>Package <b>php7.3-cli</b> is missing from your system. Please check your PHP installation and environment settings.'
58
+
echo"ERROR: PHP 7.3 not installed on your system, aborting."
59
+
exit 1
60
+
fi
61
+
62
+
# Perform verification if read-only mode is enabled
# Check if installation was successful, if not abort script and throw error message notification and clean-up
87
+
if [ $?-ne 0 ];then
88
+
echo"ERROR: File Manager installation failed!"
89
+
echo"Please report this to our development team:"
90
+
echo"https://github.com/hestiacp/hestiacp/issues"
91
+
$BIN/v-add-user-notification admin 'File Manager installation failed!''Please report this to our development team on <a href="https://github.com/hestiacp/hestiacp/issues" target="_new"><i class="fab fa-github"></i> GitHub</a>.'
0 commit comments