1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-04-16 23:38:26 +02:00
parent 762a606d44
commit 0997eb315b
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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"