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

[autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1

This commit is contained in:
Yunohost-Bot 2024-03-11 15:40:01 +01:00 committed by Félix Piédallu
parent b0b09712d8
commit 844480c316

View file

@ -82,7 +82,7 @@ if [ -z $(sqlite3 $install_dir/app.db "SELECT config_kepubifypath FROM settings"
eval sqlite3 $install_dir/app.db "\"UPDATE settings SET config_kepubifypath='/opt/kepubify/$app/kepubify' WHERE ID=1\"" eval sqlite3 $install_dir/app.db "\"UPDATE settings SET config_kepubifypath='/opt/kepubify/$app/kepubify' WHERE ID=1\""
fi fi
if [ ! -d /opt/kepubify/$app ]; then if [ ! -d /opt/kepubify/$app ]; then
ynh_setup_source --dest_dir="/opt/kepubify/$app" --source_id="kepubify" ynh_setup_source --dest_dir="/opt/kepubify/$app" --source_id="kepubify" --full_replace=1
chmod 770 /opt/kepubify/$app/kepubify chmod 770 /opt/kepubify/$app/kepubify
fi fi
@ -109,7 +109,7 @@ then
ynh_add_config --template="../sources/patches/main-constants.py.patch.src" --destination="../sources/patches/main-constants.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 # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir" --full_replace=1
chown -R $app: $install_dir chown -R $app: $install_dir
# Remove the patch for web.py in case visitor are allowed # Remove the patch for web.py in case visitor are allowed