1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

backup restore kepubify

This commit is contained in:
Krakinou 2022-11-12 16:53:53 +01:00
parent e6d7ae84e3
commit 8a95c527ff
3 changed files with 14 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"en": "Browsing, reading and downloading eBooks using a Calibre database",
"fr": "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre"
},
"version": "0.96.19~ynh3",
"version": "0.96.19~ynh4",
"url": "https://github.com/janeczku/calibre-web",
"upstream": {
"version": "0.6.19",

View file

@ -45,6 +45,12 @@ ynh_print_info --message="Declaring files to be backed up..."
#This will backup the app.db file at the same time
ynh_backup --src_path="$final_path"
#=================================================
# BACKUP THE KEPUBIFY BINARY
#=================================================
ynh_backup --src_path="/opt/kepubify"
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================

View file

@ -69,6 +69,13 @@ ynh_system_user_create --username=$app
ynh_script_progression --message="Restoring the app main directory..." --weight=1
ynh_restore_file --origin_path="$final_path"
#=================================================
# RESTORE THE KEPUBIFY BINARIES
#=================================================
ynh_script_progression --message="Restoring Kepubify..." --weight=1
ynh_restore_file --origin_path="/opt/kepubify"
#=================================================
# RESTORE USER RIGHTS
#=================================================