From 69512ba605ec51e62c2968e1994fbee2e7b25c21 Mon Sep 17 00:00:00 2001 From: Eugeny Ablesov <133771006+EvgenyAblesov@users.noreply.github.com> Date: Mon, 26 Jun 2023 14:00:12 +0300 Subject: [PATCH] Update install.sh Fixed password comparison --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1c65cb6..170ce6d 100644 --- a/install.sh +++ b/install.sh @@ -69,7 +69,7 @@ set_credentials() { read -s password2 echo "" - if [ $password1 = $password2 ]; then + if [ "$password1" == "$password2" ]; then password=$(echo -n "$password1" | sha256sum | cut -d" " -f1) sed -i "s/userlogin/$login/g" /usr/share/tinycheck/config.yaml sed -i "s/userpassword/$password/g" /usr/share/tinycheck/config.yaml