mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
boucel while au lieu de for
This commit is contained in:
parent
1917469792
commit
d78170a0e1
1 changed files with 9 additions and 6 deletions
|
@ -139,13 +139,16 @@ chown -R $app:$app /var/log/$app
|
||||||
systemctl start $app
|
systemctl start $app
|
||||||
sleep 5s
|
sleep 5s
|
||||||
systemctl stop $app
|
systemctl stop $app
|
||||||
for i in $(cat ../conf/init_calibre_db)
|
|
||||||
sqlite3 $final_path/app.db "UPDATE settings SET $i WHERE ID=1"
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in $(cat ../conf/init_calibre_db_user)
|
#set database settings as per conf file
|
||||||
sqlite3 $final_path/app.db "UPDATE user SET $i WHERE ID=1"
|
while IFS='' read -r line || [[ -n "$i" ]]; do
|
||||||
done
|
sqlite3 $final_path/app.db "UPDATE settings SET $i WHERE ID=1"
|
||||||
|
done < $(cat ../conf/init_calibre_db)
|
||||||
|
|
||||||
|
while IFS='' read -r line || [[ -n "$i" ]]; do
|
||||||
|
sqlite3 $final_path/app.db "UPDATE user SET $i WHERE ID=1"
|
||||||
|
done < $(cat ../conf/init_calibre_db_user)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue