mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Check directory for kepubify
This commit is contained in:
parent
cdfa8bbc57
commit
a6cd43ac18
1 changed files with 3 additions and 1 deletions
|
@ -128,10 +128,12 @@ fi
|
||||||
|
|
||||||
#Adding kepubify converter
|
#Adding kepubify converter
|
||||||
if [ -z $(sqlite3 $final_path/app.db "SELECT config_kepubifypath FROM settings") ]; then
|
if [ -z $(sqlite3 $final_path/app.db "SELECT config_kepubifypath FROM settings") ]; then
|
||||||
|
eval sqlite3 $final_path/app.db "\"UPDATE settings SET config_kepubifypath='/opt/kepubify/kepubify-linux-$mach' WHERE ID=1\""
|
||||||
|
fi
|
||||||
|
if [ ! -d /opt/kepubify ]
|
||||||
ynh_add_config --template="../conf/appkepubify.src.default" --destination="../conf/appkepubify.src"
|
ynh_add_config --template="../conf/appkepubify.src.default" --destination="../conf/appkepubify.src"
|
||||||
ynh_setup_source --dest_dir="/opt/kepubify" --source_id="appkepubify"
|
ynh_setup_source --dest_dir="/opt/kepubify" --source_id="appkepubify"
|
||||||
chmod 770 /opt/kepubify/kepubify-linux-$mach
|
chmod 770 /opt/kepubify/kepubify-linux-$mach
|
||||||
eval sqlite3 $final_path/app.db "\"UPDATE settings SET config_kepubifypath='/opt/kepubify/kepubify-linux-$mach' WHERE ID=1\""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the permission "kobo_sync" only if it doesn't exist.
|
# Create the permission "kobo_sync" only if it doesn't exist.
|
||||||
|
|
Loading…
Add table
Reference in a new issue