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

Fix mkdir failing if /var/log/mastodon already exists

This commit is contained in:
Tagadda 2023-08-01 05:33:53 +02:00
parent 9cb1a92c67
commit bf5c01565e

View file

@ -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