diff --git a/scripts/upgrade b/scripts/upgrade index a156b9f..de16619 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -191,6 +191,12 @@ do # Create a temporary directory tmpdir=$(mktemp -d) + # Patch nexcloud files only for the last upgrade. + if [ "$current_major_version" = "last" ] + then + cp -a ../sources/patches_last_version ../sources/patches + fi + # Install the next nextcloud version in $tmpdir ynh_setup_source "$tmpdir" diff --git a/sources/patches/app-00-add-logout_url-conf.patch b/sources/patches_last_version/app-00-add-logout_url-conf.patch similarity index 100% rename from sources/patches/app-00-add-logout_url-conf.patch rename to sources/patches_last_version/app-00-add-logout_url-conf.patch diff --git a/sources/patches/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch b/sources/patches_last_version/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch similarity index 100% rename from sources/patches/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch rename to sources/patches_last_version/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch