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:
parent
77bf8b8733
commit
78089a229e
3 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue