1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/autobrr_ynh.git synced 2024-09-03 18:15:56 +02:00
This commit is contained in:
Éric Gaspar 2023-04-15 22:26:23 +02:00
parent 7d5413f23b
commit 389b532226
6 changed files with 21 additions and 8 deletions

View file

@ -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.

View file

@ -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.

View file

@ -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]

View file

@ -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
#=================================================

View file

@ -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

View file

@ -33,6 +33,7 @@ then
fi
chown -R $app:www-data "$install_dir"
chmod +x "$install_dir/autobrr"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS