From 01b01f1df3300237993ed3905e3a76a1ab3297db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 2 Apr 2024 23:05:09 +0200 Subject: [PATCH] Add --full_replace=1 --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 77543c1..5461090 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,11 +24,11 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --source_id=ttyd --dest_dir="$install_dir" +ynh_setup_source --source_id=ttyd --dest_dir="$install_dir" --full_replace=1 chmod +x "$install_dir/ttyd" # Get only the ttyd-login script -ynh_setup_source --source_id=httpsh --dest_dir="$install_dir/httpsh" +ynh_setup_source --source_id=httpsh --dest_dir="$install_dir/httpsh" --full_replace=1 mv "$install_dir/httpsh/usr/local/bin/ttyd-login" "$install_dir/httpsh-ttyd-login" ynh_secure_remove --file="$install_dir/httpsh"