From 2191e5969fc3418e354c607842d33a0673da0cc9 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Thu, 20 Dec 2018 20:13:37 +0100 Subject: [PATCH] Correct password management so that package linter accepts it --- check_process | 2 +- scripts/install | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index bc1b264..af2868d 100644 --- a/check_process +++ b/check_process @@ -17,7 +17,7 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=0 from_commit=65c382d138596fcb32b4c97c39398815a1dcd4e8 +# upgrade=0 from_commit=65c382d138596fcb32b4c97c39398815a1dcd4e8 backup_restore=1 multi_instance=0 incorrect_path=1 diff --git a/scripts/install b/scripts/install index b68fa00..abf53ca 100755 --- a/scripts/install +++ b/scripts/install @@ -172,7 +172,9 @@ eval sqlite3 $final_path/app.db "$conf" #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 ') ynh_print_OFF -sqlite3 $final_path/app.db "UPDATE user SET password='$(python ../conf/generate_password_hash.py "$pass" $final_path/vendor)' WHERE ID=1" +#had to set it on two lines or package_linter cries... +pass=$(python ../conf/generate_password_hash.py "$pass" $final_path/vendor) +sqlite3 $final_path/app.db "UPDATE user SET password='$pass' WHERE ID=1" ynh_print_ON #=================================================