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:
parent
c216d477d8
commit
cac882a7ef
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue