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

Fix Nextcloud apps upgrade (fixes #123)

avoid putting existing apps in an inappropriate sub-directory after Nextcloud update...
This commit is contained in:
Jimmy Monin 2018-06-14 18:20:53 +02:00
parent 2809b9a8bc
commit 51de0db362

View file

@ -202,7 +202,8 @@ do
# Backup 3rd party applications from the current nextcloud
# But do not overwrite if there is any upgrade
cp -a --update "$final_path/apps" "$tmpdir/apps"
# (apps directory already exists in Nextcloud archive)
cp -a --update "$final_path/apps" "$tmpdir"
# Replace the old nextcloud by the new one
ynh_secure_remove "$final_path"