1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

No need to secure any source file

This commit is contained in:
Thomas Parisot 2021-01-19 13:03:49 +01:00
parent 72f46c6a4a
commit 5e2e7b2da2

View file

@ -145,16 +145,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Create a temporary directory
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs"
# Remove the app directory securely
ynh_secure_remove --file="$final_path/$app"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path/$app" ynh_setup_source --dest_dir="$final_path/$app"
fi fi