|
|
@@ -63,6 +63,8 @@ check_hestia_demo_mode
|
|
|
# Action #
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
+openssl_installed=$(/usr/local/hestia/php/bin/php -m | grep openssl);
|
|
|
+
|
|
|
rm --recursive --force "$FM_INSTALL_DIR"
|
|
|
mkdir -p "$FM_INSTALL_DIR"
|
|
|
cd "$FM_INSTALL_DIR"
|
|
|
@@ -78,7 +80,11 @@ cp --recursive --force ${HESTIA_INSTALL_DIR}/filemanager/filegator/* "${FM_INSTA
|
|
|
|
|
|
chown $user: -R "${FM_INSTALL_DIR}"
|
|
|
|
|
|
-COMPOSER_HOME="$HOMEDIR/$user/.config/composer" user_exec /usr/bin/php $COMPOSER_BIN --quiet --no-dev install
|
|
|
+if [ -z "$openssl_version" ]; then
|
|
|
+ COMPOSER_HOME="$HOMEDIR/$user/.config/composer" user_exec /usr/bin/php $COMPOSER_BIN --quiet --no-dev install
|
|
|
+else
|
|
|
+ COMPOSER_HOME="$HOMEDIR/$user/.config/composer" user_exec /usr/local/hestia/php/bin/php $COMPOSER_BIN --quiet --no-dev install
|
|
|
+fi
|
|
|
|
|
|
# Check if installation was successful, if not abort script and throw error message notification and clean-up
|
|
|
if [ $? -ne 0 ]; then
|