From 53bd582968347ef3688e53da514a31c084e0610d Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 15 Dec 2018 17:28:55 +0100 Subject: [PATCH] change pass_hash --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index fedeece..8a62675 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,7 @@ path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE -pass_hash=$(python ../conf/generate_password_hash.py $YNH_APP_ARG_PASSWORD $final_path/vendor) +password=$YNH_APP_ARG_PASSWORD app=$YNH_APP_INSTANCE_NAME calibre_dir=$3 @@ -142,6 +142,8 @@ sleep 5s systemctl stop $app #set database settings as per conf file +pass_hash=$(python ../conf/generate_password_hash.py $password $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"