mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
t'est
This commit is contained in:
parent
c1f0042730
commit
e813ca89f2
1 changed files with 4 additions and 2 deletions
|
@ -138,12 +138,14 @@ chown -R $app:$app /var/log/$app
|
||||||
#we need to start and stop the service so that initial app.db file is created and that we can set default data
|
#we need to start and stop the service so that initial app.db file is created and that we can set default data
|
||||||
systemctl start $app
|
systemctl start $app
|
||||||
#sleep required on low spec like raspberryPi
|
#sleep required on low spec like raspberryPi
|
||||||
sleep 60s
|
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=$(. <(echo -e echo $(<../conf/init_calibre_db_settings)))
|
||||||
sqlite3 ./app.db "UPDATE settings SET $conf WHERE ID=1"
|
#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
|
||||||
|
|
||||||
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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue