From 311058f09b732ac93288e506cedb6fdb8b893575 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Tue, 7 Jun 2022 14:41:06 +0300 Subject: [PATCH] sql_app: init_secrets: add new variable for first user password Signed-off-by: HeshamTB --- sql_app/init_secrets.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sql_app/init_secrets.sh b/sql_app/init_secrets.sh index b94db2e..0f1836f 100755 --- a/sql_app/init_secrets.sh +++ b/sql_app/init_secrets.sh @@ -4,3 +4,15 @@ echo "API_KEY=$(./gen_secret.sh)" >> .env echo "API_KEY_NAME=big_boy" >> .env echo "jwt_secret=$(./gen_secret.sh)" >> .env echo "jwt_algorithm=HS256" >> .env + +read -s -p "First User password: " firstpass +echo +read -s -p "Retype First User password: " secondpass +echo + +if [ $firstpass != $secondpass ]; +then + echo "Passwords dont match!" + exit 255 +fi +echo "first_user_pass=$firstpass" >> .env