From 099f221b7102f8564913de562c2c1432b9248453 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Tue, 1 Aug 2023 05:33:53 +0200 Subject: [PATCH] Fix mkdir failing if /var/log/mastodon already exists --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index d0fd3dc..5341e92 100644 --- a/scripts/install +++ b/scripts/install @@ -144,7 +144,7 @@ yunohost service add "$app-streaming" --description="$app streaming service" ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" # Use logrotate to manage application logfile(s) -mkdir /var/log/$app +mkdir -p /var/log/$app chown $app:$app /var/log/$app ynh_use_logrotate