From c7a9841a987d807b9057bb0f4b1faa154947b0af Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 8 Nov 2021 22:06:26 +0100 Subject: [PATCH] fix --- scripts/_common.sh | 5 ----- scripts/upgrade | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8b60cc4..bc051ba 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -33,8 +33,3 @@ ynh_detect_arch(){ fi echo $architecture } - -#================================================= -# DEFINE ALL COMMON FONCTIONS -#================================================= - \ No newline at end of file diff --git a/scripts/upgrade b/scripts/upgrade index 12041e4..0577d3c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -75,16 +75,13 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app #================================================= # Clean template to fix issue : https://github.com/gogits/gogs/issues/4585 -ynh_secure_remove --file="/opt/$app/templates" +ynh_secure_remove --file="$final_path/templates" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= ynh_script_progression --message="Setting up source files..." --weight=3 -repo_path="$datadir/repositories" -data_path="$datadir/data" - ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$final_path --source_id="$architecture" --keep="$final_path/custom/conf/app.ini $final_path/custom/conf/auth.d/ldap.conf"