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

Create log file

This commit is contained in:
tituspijean 2024-02-27 08:15:49 +00:00
parent 77bf8b8733
commit 78089a229e
3 changed files with 3 additions and 0 deletions

View file

@ -76,6 +76,7 @@ ynh_add_nginx_config
ynh_add_systemd_config
mkdir -p "/var/log/$app"
touch "/var/log/$app/peertube.log"
chown -R $app:$app "/var/log/$app"
# Use logrotate to manage application logfile(s)

View file

@ -56,6 +56,7 @@ ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
mkdir -p "/var/log/$app"
touch "/var/log/$app/peertube.log"
chown -R $app:$app "/var/log/$app"
ynh_restore_file --origin_path="/etc/logrotate.d/$app"

View file

@ -107,6 +107,7 @@ ynh_add_nginx_config
ynh_add_systemd_config
mkdir -p "/var/log/$app"
touch "/var/log/$app/peertube.log"
chown -R $app:$app "/var/log/$app"
# Use logrotate to manage app-specific logfile(s)