From 78089a229edb43813f93148796d5834f050ce713 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 27 Feb 2024 08:15:49 +0000 Subject: [PATCH 1/2] Create log file --- scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 0a7678d..1385316 100644 --- a/scripts/install +++ b/scripts/install @@ -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) diff --git a/scripts/restore b/scripts/restore index d3010c5..65927f9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index 30e1230..9b0875c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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) From 7ea91bd9b1942c19ba89e479c0c13613870b5342 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 27 Feb 2024 08:17:16 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 4 ++-- README_fr.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d981c3f..80a07ea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -47,4 +47,4 @@ or sudo yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug ``` -**More info regarding app packaging:** +**More info regarding app packaging:** \ No newline at end of file diff --git a/README_fr.md b/README_fr.md index f08407e..445c871 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,5 +1,5 @@