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:
parent
9bf8a84e66
commit
7a2b84323c
1 changed files with 0 additions and 15 deletions
|
@ -94,22 +94,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=2
|
ynh_script_progression --message="Upgrading source files..." --weight=2
|
||||||
|
|
||||||
# # Create a temporary directory
|
|
||||||
# tmpdir="$(mktemp -d)"
|
|
||||||
|
|
||||||
# # Backup the config file in the temp dir
|
|
||||||
# cp -ar "$final_path/data/passwd" "$tmpdir/passwd"
|
|
||||||
|
|
||||||
# # Remove the app directory securely
|
|
||||||
# ynh_secure_remove --file="$final_path"
|
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="$final_path/data/passwd"
|
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="$final_path/data/passwd"
|
||||||
|
|
||||||
# # Copy the admin saved settings from tmp directory to final path
|
|
||||||
# cp -ar "$tmpdir/passwd" "$final_path/data/passwd"
|
|
||||||
|
|
||||||
# # Remove the tmp directory securely
|
|
||||||
# ynh_secure_remove --file="$tmpdir"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
Loading…
Reference in a new issue