From c0e1dc2f8153b0edcb1820a0bf295480c6f3c477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 27 Dec 2023 17:23:14 +0100 Subject: [PATCH] cleaning --- scripts/install | 8 +++----- scripts/restore | 2 +- scripts/upgrade | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index b758980..ff9bc24 100644 --- a/scripts/install +++ b/scripts/install @@ -74,7 +74,7 @@ chown -R $app:$app "/var/log/$app" # Use logrotate to manage application logfile(s) ynh_use_logrotate -yunohost service add $app --description="$app daemon for Peertube" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp +yunohost service add $app --description="Federated video streaming platform" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp #================================================= # BUILD YARN DEPENDENCIES @@ -93,13 +93,11 @@ popd #================================================= ynh_script_progression --message="Adding a configuration file..." -ynh_add_config --template="../conf/production.yaml" --destination="$install_dir/config/production.yaml" - +ynh_add_config --template="production.yaml" --destination="$install_dir/config/production.yaml" chmod 400 "$install_dir/config/production.yaml" chown $app:$app "$install_dir/config/production.yaml" -ynh_add_config --template="../conf/local-production.json" --destination="$install_dir/config/local-production.json" - +ynh_add_config --template="local-production.json" --destination="$install_dir/config/local-production.json" chmod 600 "$install_dir/config/local-production.json" chown $app:$app "$install_dir/config/local-production.json" diff --git a/scripts/restore b/scripts/restore index 21bc8fe..f84ad16 100644 --- a/scripts/restore +++ b/scripts/restore @@ -54,7 +54,7 @@ mkdir -p "/var/log/$app" chown -R $app:$app "/var/log/$app" ynh_restore_file --origin_path="/etc/logrotate.d/$app" -yunohost service add $app --description="$app daemon for Peertube" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp +yunohost service add $app --description="Federated video streaming platform" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index 1aa1422..3a8fd3e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,7 +98,7 @@ chown -R $app:$app "/var/log/$app" # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append -yunohost service add $app --description="$app daemon for Peertube" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp +yunohost service add $app --description="Federated video streaming platform" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp #================================================= # Generate secrets if they don't exist @@ -127,12 +127,10 @@ popd ynh_script_progression --message="Updating a config file..." ynh_add_config --template="../conf/production.yaml" --destination="$install_dir/config/production.yaml" - chmod 400 "$install_dir/config/production.yaml" chown $app:$app "$install_dir/config/production.yaml" ynh_backup_if_checksum_is_different --file="$install_dir/config/local-production.json" - chmod 600 "$install_dir/config/local-production.json" chown $app:$app "$install_dir/config/local-production.json"