1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

escape the dollar sign in password hash (#159)

* escape the dollar sign in password hash

* all that is needed is single rather than double quote
This commit is contained in:
georgejhunt 2017-08-31 10:07:05 -07:00 committed by GitHub
parent c216d477d8
commit cac882a7ef

View file

@ -8,7 +8,7 @@ check_hash ()
test -n "${SHADOW}" || return 0
if echo $SHADOW | grep -q "iiab-admin:!" ; then return 0 ; fi
SHADOW_PW=$(echo $SHADOW | cut -d: -f2)
if [ "$SHADOW_PW" != "{{ iiab_admin_passw_hash }}" ]; then return 0 ; fi
if [ "$SHADOW_PW" != '{{ iiab_admin_passw_hash }}' ]; then return 0 ; fi
echo
echo "SSH is enabled and the default password for the 'iiab-admin' user is unchanged."