1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00

Fix upgrade: ynh_setup_source should overwrite the whole directory.

This commit is contained in:
Salamandar 2024-01-10 22:17:05 +01:00 committed by GitHub
parent 5cad88d7af
commit a3d88e4a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=7
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep=".env storage/oauth-private.key storage/oauth-public.key storage/private_uploads public/uploads"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env storage/oauth-private.key storage/oauth-public.key storage/private_uploads public/uploads"
fi
chown -R $app:www-data "$install_dir"