From 389b532226fc53b5628e6b7fe9635018ab2105b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 15 Apr 2023 22:26:23 +0200 Subject: [PATCH] fix --- doc/DESCRIPTION.md | 2 +- doc/DESCRIPTION_fr.md | 2 +- manifest.toml | 8 +++----- scripts/backup | 7 +++++++ scripts/restore | 9 ++++++++- scripts/upgrade | 1 + 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 3f2e57a..16d489f 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1 +1 @@ -This is a dummy description of this app features +autobrr is the modern download automation tool for torrents and usenet. With inspiration and ideas from tools like trackarr, autodl-irssi and flexget we built one tool that can do it all, and then some. \ No newline at end of file diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index 13f4b64..f740f92 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -1 +1 @@ -Ceci est une fausse description des fonctionalités de l'app +autobrr est l'outil d'automatisation de téléchargement moderne pour torrents et usenet. Avec l'inspiration et les idées d'outils comme trackarr, autodl-irssi et flexget, nous avons construit un outil qui peut tout faire, et plus encore. \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index 30299e5..8bf51b3 100644 --- a/manifest.toml +++ b/manifest.toml @@ -3,18 +3,16 @@ packaging_format = 2 id = "autobrr" name = "Autobrr" description.en = "Modern, easy to use download automation for torrents and usenet" -description.fr = "" +description.fr = "Automatisation de téléchargement pour les torrents et Usenet" version = "1.23.0~ynh1" -maintainers = ["johndoe"] +maintainers = ["eric_G"] [upstream] license = "free" website = "https://autobrr.com/" -demo = "https://demo.example.com" -admindoc = "https://yunohost.org/packaging_apps" -userdoc = "https://yunohost.org/apps" +admindoc = "https://autobrr.com/installation/" code = "https://github.com/autobrr/autobrr" [integration] diff --git a/scripts/backup b/scripts/backup index 2ee75c0..82fc43b 100755 --- a/scripts/backup +++ b/scripts/backup @@ -40,6 +40,13 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/systemd/system/$app.service" +#================================================= +# BACKUP THE POSTGRESQL DATABASE +#================================================= +ynh_print_info --message="Backing up the PostgreSQL database..." + +ynh_psql_dump_db --database="$db_name" > db.sql + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 04f753b..a63c37c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -29,6 +29,13 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory # (Same as for install dir) chown -R $app:www-data "$data_dir" +#================================================= +# RESTORE THE POSTGRESQL DATABASE +#================================================= +ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=6 + +ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name + #================================================= # RESTORE SYSTEM CONFIGURATIONS #================================================= @@ -41,7 +48,7 @@ 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="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Automation for torrents and usenet" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index eda6b65..95149c1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,6 +33,7 @@ then fi chown -R $app:www-data "$install_dir" +chmod +x "$install_dir/autobrr" #================================================= # REAPPLY SYSTEM CONFIGURATIONS