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:
Krakinou 2018-12-15 01:13:36 +01:00
parent e813ca89f2
commit 2a6f4d4bce

View file

@ -143,9 +143,10 @@ systemctl stop $app
#set database settings as per conf file #set database settings as per conf file
conf=$(. <(echo -e echo $(<../conf/init_calibre_db_settings))) conf=$(. <(echo -e echo $(<../conf/init_calibre_db_settings)))
#sqlite3 ./app.db "UPDATE settings SET $conf WHERE ID=1"
sqlite3 ./app.db "UPDATE settings SET calibre_dir=\"$calibre_dir\", calibre_port=$port WHERE ID=1"
echo $conf echo $conf
#sqlite3 ./app.db "UPDATE settings SET $conf WHERE ID=1"
sqlite3 ./app.db "UPDATE settings SET calibre_dir="$calibre_dir", calibre_port=$port WHERE ID=1"
conf=$(. <(echo -e echo $(<../conf/init_calibre_db_user))) conf=$(. <(echo -e echo $(<../conf/init_calibre_db_user)))
sqlite3 $final_path/app.db "UPDATE user SET $conf WHERE ID=1" sqlite3 $final_path/app.db "UPDATE user SET $conf WHERE ID=1"