mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Fix patching of sources
This commit is contained in:
parent
a686db4aac
commit
2ef1482c9b
9 changed files with 10 additions and 9 deletions
|
@ -5,7 +5,7 @@ name = "Calibre-web"
|
|||
description.en = "Browsing, reading and downloading eBooks using a Calibre database"
|
||||
description.fr = "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre"
|
||||
|
||||
version = "0.6.20~ynh2"
|
||||
version = "0.96.20~ynh2"
|
||||
|
||||
maintainers = ["Krakinou"]
|
||||
|
||||
|
|
|
@ -29,9 +29,9 @@ ynh_script_progression --message="Downloading sources to $install_dir..." --weig
|
|||
#REMOVEME? ynh_app_setting_set $app install_dir $install_dir
|
||||
|
||||
#Set settings constant initializer of the app
|
||||
ynh_add_config --template="../sources/patches/app-config_sql.py.patch.src" --destination="../sources/patches/app-config_sql.py.patch"
|
||||
ynh_add_config --template="../sources/patches/app-ub.py.patch.src" --destination="../sources/patches/app-ub.py.patch"
|
||||
ynh_add_config --template="../sources/patches/app-constants.py.patch.src" --destination="../sources/patches/app-constants.py.patch"
|
||||
ynh_add_config --template="../sources/patches/main-config_sql.py.patch.src" --destination="../sources/patches/main-config_sql.py.patch"
|
||||
ynh_add_config --template="../sources/patches/main-ub.py.patch.src" --destination="../sources/patches/main-ub.py.patch"
|
||||
ynh_add_config --template="../sources/patches/main-constants.py.patch.src" --destination="../sources/patches/main-constants.py.patch"
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
@ -111,7 +111,7 @@ ynh_add_systemd_config
|
|||
#=================================================
|
||||
# Use logrotate to manage application logfile(s)
|
||||
ynh_use_logrotate --logfile="$log_file"
|
||||
ynh_use_logrotate --logfile="/var/log/$app/$access_log_file"
|
||||
ynh_use_logrotate --logfile="$access_log_file"
|
||||
chown -R $app:$app /var/log/$app
|
||||
|
||||
|
||||
|
|
|
@ -93,7 +93,8 @@ fi
|
|||
|
||||
# Remove the log files
|
||||
ynh_script_progression --message="Removing log file..." --weight=1
|
||||
ynh_secure_remove "/var/log/$app/"
|
||||
ynh_secure_remove "$log_file"
|
||||
ynh_secure_remove "$access_log_file"
|
||||
|
||||
#=================================================
|
||||
# MESSAGE TO USER
|
||||
|
|
|
@ -90,9 +90,9 @@ then
|
|||
ynh_script_progression --message="Upgrading source files from $current_upstream_app_version to $new_upstream_package_version..." --weight=10
|
||||
|
||||
#Set settings constant initializer of the app
|
||||
ynh_add_config --template="../sources/patches/app-config_sql.py.patch.src" --destination="../sources/patches/app-config_sql.py.patch"
|
||||
ynh_add_config --template="../sources/patches/app-ub.py.patch.src" --destination="../sources/patches/app-ub.py.patch"
|
||||
ynh_add_config --template="../sources/patches/app-constants.py.patch.src" --destination="../sources/patches/app-constants.py.patch"
|
||||
ynh_add_config --template="../sources/patches/main-config_sql.py.patch.src" --destination="../sources/patches/main-config_sql.py.patch"
|
||||
ynh_add_config --template="../sources/patches/main-ub.py.patch.src" --destination="../sources/patches/main-ub.py.patch"
|
||||
ynh_add_config --template="../sources/patches/main-constants.py.patch.src" --destination="../sources/patches/main-constants.py.patch"
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue