diff --git a/scripts/install b/scripts/install index 2a373a5..8e65b18 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" -# Run composer -(cd $final_path && sudo php bin/composer.phar install) +# Install composer +init_composer "$final_path" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 5995bdf..16a8140 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" - -# Run composer -(cd $final_path && sudo php bin/composer.phar install) + +# Install composer +init_composer "$final_path" # 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 b359fde..6bdcf63 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 -# Run composer -(cd $final_path && sudo php bin/composer.phar install) +# Install composer +init_composer "$final_path" #================================================= # SETUP SSOWAT