From f8ce342f8c6e095c428804c2849996f70922670e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 9 Dec 2023 22:13:31 +0100 Subject: [PATCH] cleaning --- doc/DESCRIPTION.md | 2 +- doc/DESCRIPTION_fr.md | 1 + scripts/install | 4 ++-- scripts/restore | 11 ++--------- scripts/upgrade | 2 +- 5 files changed, 7 insertions(+), 13 deletions(-) create mode 100644 doc/DESCRIPTION_fr.md diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 5aab09f..5365662 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1 +1 @@ -Minimalist and opinionated RSS feed reader \ No newline at end of file +Minimalist and opinionated RSS feed reader. \ No newline at end of file diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..b778425 --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1 @@ +Lecteur de flux RSS minimaliste. \ No newline at end of file diff --git a/scripts/install b/scripts/install index 56026c0..c1122f6 100644 --- a/scripts/install +++ b/scripts/install @@ -32,15 +32,15 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" -chmod +x "$install_dir/miniflux" chown -R $app:www-data "$install_dir" +chmod +x "$install_dir/miniflux" #================================================= # ADD A CONFIGURATION #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -ynh_add_config --template="../conf/miniflux.conf" --destination="$install_dir/$app.conf" +ynh_add_config --template="miniflux.conf" --destination="$install_dir/$app.conf" chmod 600 "$install_dir/$app.conf" chown $app "$install_dir/$app.conf" diff --git a/scripts/restore b/scripts/restore index 7a394a4..67f302a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -39,10 +39,10 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet -yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log" - ynh_restore_file --origin_path="/etc/logrotate.d/$app" +yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log" + #================================================= # START SYSTEMD SERVICE #================================================= @@ -50,13 +50,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action=start --log_path=systemd -#================================================= -# GENERIC FINALIZATION -#================================================= -# RELOAD NGINX -#================================================= -ynh_script_progression --message="Reloading NGINX web server..." --weight=1 - ynh_systemd_action --service_name=nginx --action=reload #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 0063390..255f3f7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,8 +37,8 @@ then fi chmod -R o-rwx "$install_dir" -chmod +x "$install_dir/miniflux" chown -R $app:www-data "$install_dir" +chmod +x "$install_dir/miniflux" #================================================= # REAPPLY SYSTEM CONFIGURATIONS