From 191e4ad13cd63402925f78ec4f5d903b32262871 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 1 Mar 2024 21:38:35 +0100 Subject: [PATCH] make sure the log folder exists before moving the logs to it --- manifest.toml | 2 +- scripts/upgrade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 2610260..c3ff03a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Nextcloud" description.en = "Online storage, file sharing platform and various other applications" description.fr = "Stockage en ligne, plateforme de partage de fichiers et diverses autres applications" -version = "28.0.3~ynh1" +version = "28.0.3~ynh2" maintainers = ["kay0u"] diff --git a/scripts/upgrade b/scripts/upgrade index c6ea89a..643add7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -242,6 +242,8 @@ then # it would be better in the ENSURE DOWNWARD COMPATIBILITY section # but it must be after the exec_occ() definition, so it's here if [ -f "$data_dir/data/nextcloud.log" ]; then + mkdir -p "/var/log/$app" + chmod 750 "/var/log/$app" mv "$data_dir"/data/nextcloud.log* "/var/log/$app" # adapt the nextcloud config exec_occ config:system:set logfile --value="/var/log/$app/nextcloud.log"