From 6c11235288e0b3667a5c45f9ba48a4fd43226976 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 15 Dec 2018 18:56:20 +0100 Subject: [PATCH] Adapt settings user --- conf/init_calibre_db_user | 3 ++- scripts/install | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/conf/init_calibre_db_user b/conf/init_calibre_db_user index 6abd62b..81e736d 100644 --- a/conf/init_calibre_db_user +++ b/conf/init_calibre_db_user @@ -1,2 +1,3 @@ nickname=\'$admin\', -default_language=\'$language\' \ No newline at end of file +locale=\'$language\', +mature_content=0 \ No newline at end of file diff --git a/scripts/install b/scripts/install index be81d24..cde5f9f 100755 --- a/scripts/install +++ b/scripts/install @@ -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"