From c294f5bb011dd39ecc9a9ce00cfc68cb042d86c5 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Tue, 25 Sep 2018 00:59:56 +0530 Subject: [PATCH] Upgrade to 2018.09 --- scripts/install | 4 ++-- scripts/restore | 6 +++--- scripts/upgrade | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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