File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ check_hestia_demo_mode
6363# Action #
6464# ----------------------------------------------------------#
6565
66+ openssl_installed=$( /usr/local/hestia/php/bin/php -m | grep openssl) ;
67+
6668rm --recursive --force " $FM_INSTALL_DIR "
6769mkdir -p " $FM_INSTALL_DIR "
6870cd " $FM_INSTALL_DIR "
@@ -78,7 +80,11 @@ cp --recursive --force ${HESTIA_INSTALL_DIR}/filemanager/filegator/* "${FM_INSTA
7880
7981chown $user : -R " ${FM_INSTALL_DIR} "
8082
81- COMPOSER_HOME=" $HOMEDIR /$user /.config/composer" user_exec /usr/local/hestia/php/bin/php $COMPOSER_BIN --quiet --no-dev install
83+ if [ -z " $openssl_version " ]; then
84+ COMPOSER_HOME=" $HOMEDIR /$user /.config/composer" user_exec /usr/bin/php $COMPOSER_BIN --quiet --no-dev install
85+ else
86+ COMPOSER_HOME=" $HOMEDIR /$user /.config/composer" user_exec /usr/local/hestia/php/bin/php $COMPOSER_BIN --quiet --no-dev install
87+ fi
8288
8389# Check if installation was successful, if not abort script and throw error message notification and clean-up
8490if [ $? -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -65,7 +65,12 @@ rm --recursive --force ${PM_INSTALL_DIR}/vendor
6565mkdir -p ${PM_INSTALL_DIR} /vendor
6666chown $user : -R ${PM_INSTALL_DIR} /vendor
6767
68- COMPOSER_HOME=" $HOMEDIR /$user /.config/composer" user_exec /usr/local/hestia/php/bin/php $COMPOSER_BIN --quiet --no-dev install
68+ openssl_installed=$( /usr/local/hestia/php/bin/php -m | grep openssl) ;
69+ if [ -z " $openssl_version " ]; then
70+ COMPOSER_HOME=" $HOMEDIR /$user /.config/composer" user_exec /usr/bin/php $COMPOSER_BIN --quiet --no-dev install
71+ else
72+ COMPOSER_HOME=" $HOMEDIR /$user /.config/composer" user_exec /usr/local/hestia/php/bin/php $COMPOSER_BIN --quiet --no-dev install
73+ fi
6974
7075# Check if installation was successful, if not abort script and throw error message notification and clean-up
7176if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments