mirror of
https://github.com/YunoHost-Apps/autobrr_ynh.git
synced 2024-09-03 18:15:56 +02:00
fix
This commit is contained in:
parent
7d5413f23b
commit
389b532226
6 changed files with 21 additions and 8 deletions
|
@ -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.
|
|
@ -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.
|
|
@ -3,18 +3,16 @@ packaging_format = 2
|
||||||
id = "autobrr"
|
id = "autobrr"
|
||||||
name = "Autobrr"
|
name = "Autobrr"
|
||||||
description.en = "Modern, easy to use download automation for torrents and usenet"
|
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"
|
version = "1.23.0~ynh1"
|
||||||
|
|
||||||
maintainers = ["johndoe"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
license = "free"
|
license = "free"
|
||||||
website = "https://autobrr.com/"
|
website = "https://autobrr.com/"
|
||||||
demo = "https://demo.example.com"
|
admindoc = "https://autobrr.com/installation/"
|
||||||
admindoc = "https://yunohost.org/packaging_apps"
|
|
||||||
userdoc = "https://yunohost.org/apps"
|
|
||||||
code = "https://github.com/autobrr/autobrr"
|
code = "https://github.com/autobrr/autobrr"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
|
|
|
@ -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"
|
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
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -29,6 +29,13 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
||||||
# (Same as for install dir)
|
# (Same as for install dir)
|
||||||
chown -R $app:www-data "$data_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
|
# 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"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service --quiet
|
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
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -33,6 +33,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
chmod +x "$install_dir/autobrr"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
|
|
Loading…
Reference in a new issue