parent
0dafbf63a2
commit
5091308d0b
@ -69,7 +69,7 @@ set_credentials() {
|
|||||||
read -s password2
|
read -s password2
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ $password1 = $password2 ]; then
|
if [ "$password1" == "$password2" ]; then
|
||||||
password=$(echo -n "$password1" | sha256sum | cut -d" " -f1)
|
password=$(echo -n "$password1" | sha256sum | cut -d" " -f1)
|
||||||
sed -i "s/userlogin/$login/g" /usr/share/tinycheck/config.yaml
|
sed -i "s/userlogin/$login/g" /usr/share/tinycheck/config.yaml
|
||||||
sed -i "s/userpassword/$password/g" /usr/share/tinycheck/config.yaml
|
sed -i "s/userpassword/$password/g" /usr/share/tinycheck/config.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user