mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
softcode the admin_passw_hash
This commit is contained in:
parent
ca04adfa50
commit
8b9c7de777
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ check_hash ()
|
||||||
test -n "${SHADOW}" || return 0
|
test -n "${SHADOW}" || return 0
|
||||||
if echo $SHADOW | grep -q "iiab-admin:!" ; then return 0 ; fi
|
if echo $SHADOW | grep -q "iiab-admin:!" ; then return 0 ; fi
|
||||||
SHADOW_PW=$(echo $SHADOW | cut -d: -f2)
|
SHADOW_PW=$(echo $SHADOW | cut -d: -f2)
|
||||||
if [ "$SHADOW_PW" != "\$6\$xsce51\$D.IrrEeLBYIuJkGDmi27pZUGOwPFp98qpl3hxMwWV4hXigFGmdSvy3s/j7tn6OnyTTLmlV7SsN0lCUAFzxSop." ]; then return 0 ; fi
|
if [ "$SHADOW_PW" != "{{ iiab_admin_passw_hash }}" ]; then return 0 ; fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "SSH is enabled and the default password for the 'iiab-admin' user is unchanged."
|
echo "SSH is enabled and the default password for the 'iiab-admin' user is unchanged."
|
||||||
|
|
Loading…
Reference in a new issue