mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
With eval
This commit is contained in:
parent
3578786c4b
commit
85c8eafca8
3 changed files with 14 additions and 13 deletions
|
@ -1,10 +1,10 @@
|
||||||
config_calibre_dir=\\\"$calibre_dir\\\",
|
config_calibre_dir=\'$calibre_dir\',
|
||||||
config_port=$port,
|
config_port=$port,
|
||||||
config_certfile=\\\"\\\",
|
config_certfile=\'\',
|
||||||
config_keyfile=\\\"\\\",
|
config_keyfile=\'\',
|
||||||
config_use_google_drive=0,
|
config_use_google_drive=0,
|
||||||
config_remote_login=0,
|
config_remote_login=0,
|
||||||
config_use_goodreads=0,
|
config_use_goodreads=0,
|
||||||
config_logfile=\\\"\\\",
|
config_logfile=\'\',
|
||||||
config_converterpath=\\\"\\\",
|
config_converterpath=\'\',
|
||||||
config_calibre=\\\"\\\"
|
config_calibre=\'\'
|
|
@ -1,3 +1,3 @@
|
||||||
nickname=\\\"$admin\\\",
|
nickname=\'$admin\',
|
||||||
default_language=\\\'$language\\\',
|
default_language=\'$language\',
|
||||||
password=\\\'$(python ../conf/generate_password_hash.py $password $final_path/vendor)\\\'
|
password=\'$(python ../conf/generate_password_hash.py $password $final_path/vendor)\'
|
|
@ -142,11 +142,12 @@ sleep 5s
|
||||||
systemctl stop $app
|
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="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))) WHERE ID=1\""
|
||||||
#sqlite3 ./app.db "UPDATE settings SET $conf WHERE ID=1"
|
eval sqlite3 $final_path/app.db "$conf"
|
||||||
|
|
||||||
conf=$(. <(echo -E echo $(<../conf/init_calibre_db_user)))
|
|
||||||
#sqlite3 $final_path/app.db "UPDATE user SET $conf WHERE ID=1"
|
conf="\"UPDATE user SET $(. <(echo -E echo $(<../conf/init_calibre_db_user))) WHERE ID=1\""
|
||||||
|
eval sqlite3 $final_path/app.db "$conf"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue