From 0997eb315b9b019788ec8d70395e16c3df25c7f0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 16 Apr 2021 23:38:26 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3227d66..f1b805f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -85,6 +85,7 @@ then # Backup the config file in the temp dir cp -ar "$final_path/groups" "$tmpdir/groups" + cp -ar "$final_path/data/passwd" "$tmpdir/passwd" # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -96,12 +97,12 @@ then # Copy the admin saved settings from tmp directory to final path cp -ar "$tmpdir/groups" "$final_path/groups" + cp -ar "$tmpdir/passwd" "$final_path/data/passwd" # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" - ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd" - ynh_store_file_checksum --file="$final_path/data/passwd" + #ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd" # Recreate certificates pushd "$final_path/data"