mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
patch web.py
This commit is contained in:
parent
0d92ad63dd
commit
7a69b41542
2 changed files with 9 additions and 1 deletions
|
@ -37,7 +37,9 @@ ynh_add_config --template="../sources/patches/main-constants.py.patch.src" --des
|
|||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
# Remove the patch for web.py in case visitor are allowed
|
||||
if [ $(ynh_permission_has_user --permission=main --user=visitors) ]; then
|
||||
patch -u /$install_dir/cps/web.py -i ../conf/web.py.revert.patch
|
||||
fi
|
||||
|
||||
#install kepubify converter
|
||||
ynh_script_progression --message="Installing kepubify..." --weight=1
|
||||
|
|
|
@ -96,6 +96,12 @@ then
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
chown -R $app: $install_dir
|
||||
|
||||
# Remove the patch for web.py in case visitor are allowed
|
||||
if [ $(ynh_permission_has_user --permission=main --user=visitors) ]; then
|
||||
patch -u /$install_dir/cps/web.py -i ../conf/web.py.revert.patch
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue