diff --git a/scripts/install b/scripts/install index a37e8de..e0c44a0 100644 --- a/scripts/install +++ b/scripts/install @@ -96,6 +96,9 @@ ynh_setup_source --dest_dir="$final_path/include/plugins/build/microsoft-teams" ynh_setup_source --dest_dir="$final_path/include/plugins/build/slack" --source_id="plugin-slack" ynh_setup_source --dest_dir="$final_path/include/plugins/build/preventautoscroll" --source_id="plugin-preventautoscroll" +# Woraround for https://github.com/osTicket/osTicket-plugins/pull/174 +ynh_replace_string --match_string="https://getcomposer.org/composer.phar" --replace_string="https://getcomposer.org/composer-stable.phar" --target_file="$final_path/include/plugins/build/make.php" + #================================================= # NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c48c528..0f272c7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,6 +105,10 @@ then ynh_setup_source --dest_dir="$final_path/include/plugins/build/slack" --source_id="plugin-slack" ynh_setup_source --dest_dir="$final_path/include/plugins/build/preventautoscroll" --source_id="plugin-preventautoscroll" + # Woraround for https://github.com/osTicket/osTicket-plugins/pull/174 + ynh_replace_string --match_string="https://getcomposer.org/composer.phar" --replace_string="https://getcomposer.org/composer-stable.phar" --target_file="$final_path/include/plugins/build/make.php" + + rsync -a "$tmpdir/plugins" "$final_path/include/." rsync -a "$tmpdir/ost-config.php" "$final_path/include/." ynh_secure_remove --file="$tmpdir"