Browse Source

Fix Nextcloud apps upgrade (fixes #123)

avoid putting existing apps in an inappropriate sub-directory after Nextcloud update...
pull/124/head
Jimmy Monin 8 years ago
parent
commit
51de0db362
  1. 3
      scripts/upgrade

3
scripts/upgrade

@ -202,7 +202,8 @@ do
# Backup 3rd party applications from the current nextcloud # Backup 3rd party applications from the current nextcloud
# But do not overwrite if there is any upgrade # 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 # Replace the old nextcloud by the new one
ynh_secure_remove "$final_path" ynh_secure_remove "$final_path"

Loading…
Cancel
Save