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

echo -E and \\\

This commit is contained in:
Krakinou 2018-12-15 14:01:03 +01:00
parent 2a6f4d4bce
commit 2daaf4557d
3 changed files with 16 additions and 8 deletions

View file

@ -1,2 +1,10 @@
config_calibre_dir=\\"$calibre_dir\\",
config_port=$port
config_calibre_dir=\\\"$calibre_dir\\\",
config_port=$port
config_certfile=\\\'\\\',
config_keyfile=\\\'\\\',
config_use_google_drive=0,
config_remote_login=0,
config_use_goodreads=0,
config_logfile=\\\'\\\',
config_converterpath=\\\'\\\',
config_calibre=\\\'\\\'

View file

@ -1,3 +1,3 @@
nickname=\"$admin\",
default_language=\'$language\',
password=\'$(python ../conf/generate_password_hash.py $password $final_path/vendor)\'
nickname=\\\"$admin\\\",
default_language=\\\'$language\\\',
password=\\\'$(python ../conf/generate_password_hash.py $password $final_path/vendor)\\\'

View file

@ -142,13 +142,13 @@ sleep 5s
systemctl stop $app
#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)))
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"
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"