From f263e9df460729650fe1f0ac3d62fc980f180c18 Mon Sep 17 00:00:00 2001 From: rodinux Date: Sun, 15 Jan 2023 21:15:38 +0100 Subject: [PATCH] try fix migration --- scripts/experimental_helper.sh | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/experimental_helper.sh b/scripts/experimental_helper.sh index 2eb6768..4370a5e 100644 --- a/scripts/experimental_helper.sh +++ b/scripts/experimental_helper.sh @@ -120,7 +120,7 @@ ynh_handle_app_migration () { # CHECK THE LIST OF FILES TO MOVE #================================================= - local temp_migration_list="$(tempfile)" + local temp_migration_list="$(mktemp)" # Build the list by removing blank lines and comment lines sed '/^#.*\|^$/d' "../conf/$migration_list" > "$temp_migration_list" diff --git a/scripts/upgrade b/scripts/upgrade index aeaa9b8..b0368db 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,7 +77,7 @@ ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migra if [[ $migration_process -eq 1 ]]; then # Replace the user - ynh_system_user_delete --username="$old_app" + ynh_system_user_delete --username="$old_app" --home_dir="$final_path" ynh_system_user_create --username=$app --home_dir="$final_path" fi