mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
correction boucle while
update nom fichier config
This commit is contained in:
parent
1cb8d83527
commit
37c42fde24
3 changed files with 14 additions and 14 deletions
|
@ -1,10 +0,0 @@
|
|||
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;''
|
10
conf/init_calibre_db_settings
Normal file
10
conf/init_calibre_db_settings
Normal file
|
@ -0,0 +1,10 @@
|
|||
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=''
|
|
@ -141,13 +141,13 @@ sleep 5s
|
|||
systemctl stop $app
|
||||
|
||||
#set database settings as per conf file
|
||||
while IFS='' read -r line || [[ -n "$i" ]]; do
|
||||
while IFS='' read -r i || [[ -n "$i" ]]; do
|
||||
sqlite3 $final_path/app.db "UPDATE settings SET $i WHERE ID=1"
|
||||
done < <($(cat ../conf/init_calibre_db))
|
||||
done < ../conf/init_calibre_db_settings))
|
||||
|
||||
while IFS='' read -r line || [[ -n "$i" ]]; do
|
||||
while IFS='' read -r i || [[ -n "$i" ]]; do
|
||||
sqlite3 $final_path/app.db "UPDATE user SET $i WHERE ID=1"
|
||||
done < <($(cat ../conf/init_calibre_db_user))
|
||||
done < ../conf/init_calibre_db_user))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue