diff --git a/scripts/install b/scripts/install index 8e65b18..2a373a5 100644 --- a/scripts/install +++ b/scripts/install @@ -154,8 +154,8 @@ sudo cp ../conf/poller-cron /etc/cron.d/$app # Calculate and store the config file checksum into the app settings ynh_store_file_checksum "$final_path/config/local.ini.php" -# Install composer -init_composer "$final_path" +# Run composer +(cd $final_path && sudo php bin/composer.phar install) #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 16a8140..5995bdf 100644 --- a/scripts/restore +++ b/scripts/restore @@ -90,9 +90,9 @@ chmod -R 775 $final_path/view/smarty3 # RESTORE THE CRON FILE #================================================= ynh_restore_file "/etc/cron.d/$app" - -# Install composer -init_composer "$final_path" + +# Run composer +(cd $final_path && sudo php bin/composer.phar install) # unprotected_uris allows SSO credentials to be passed anyway. ynh_app_setting_set $app unprotected_uris "/" diff --git a/scripts/upgrade b/scripts/upgrade index 6bdcf63..b359fde 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,8 +119,8 @@ ynh_replace_string "__YNH_WWW_PATH__" "$final_path" ../conf/poller-cron ynh_replace_string "__USER__" "$app" ../conf/poller-cron sudo cp ../conf/poller-cron /etc/cron.d/$app -# Install composer -init_composer "$final_path" +# Run composer +(cd $final_path && sudo php bin/composer.phar install) #================================================= # SETUP SSOWAT