mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Adapt settings user
This commit is contained in:
parent
7d77b58535
commit
6c11235288
2 changed files with 4 additions and 5 deletions
|
@ -1,2 +1,3 @@
|
|||
nickname=\'$admin\',
|
||||
default_language=\'$language\'
|
||||
locale=\'$language\',
|
||||
mature_content=0
|
|
@ -142,15 +142,13 @@ sleep 5s
|
|||
systemctl stop $app
|
||||
|
||||
#set database settings as per conf file
|
||||
pass_hash=$(python ../conf/generate_password_hash.py $pass $final_path/vendor)
|
||||
|
||||
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))) WHERE ID=1\""
|
||||
eval sqlite3 $final_path/app.db "$conf"
|
||||
|
||||
conf="\"UPDATE user SET $(. <(echo -E echo $(<../conf/init_calibre_db_user))) WHERE ID=1\""
|
||||
sleep 1s
|
||||
eval sqlite3 $final_path/app.db "$conf"
|
||||
sleep 1s
|
||||
|
||||
#mise à jour du mot de passe (je ne sais pas pourquoi, je n'arrive pas à l'intégrer dans le fichier de conf, pb de " et ')
|
||||
sqlite3 $final_path/app.db "UPDATE user SET password='$(python ../conf/generate_password_hash.py $pass $final_path/vendor)' WHERE ID=1"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue