1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00
This commit is contained in:
Salamandar 2024-07-05 07:53:05 -05:00 committed by GitHub
commit 1dc378786d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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