From ebd58cb1203ff6f99f3ac03f8d3b019a4513ea4a Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 29 Jan 2018 20:24:41 +0100 Subject: [PATCH] Fix Sigmah admin bcrypt hash generation --- sigmah.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigmah.sh b/sigmah.sh index 6073417..44abf3f 100755 --- a/sigmah.sh +++ b/sigmah.sh @@ -27,7 +27,7 @@ export SIGMAH_ADMIN_USER=Admin export SIGMAH_ADMIN_EMAIL=admin@example.com export SIGMAH_ADMIN_PWD=$(head -c 12 /dev/urandom | base64) apk --no-cache add apache2-utils -export SIGMAH_ADMIN_HASH=$(htpasswd -bnBC 10 "" ${SIGMAH_ADMIN_PWD} | tr -d ':\n' | tr '$2y' '$2a') +export SIGMAH_ADMIN_HASH=$(htpasswd -bnBC 10 "" ${SIGMAH_ADMIN_PWD} | tr -d ':\n' | sed 's/$2y/$2a/') apk --no-cache del apache2-utils sed -i "s|§OrganizationName§|Demo organization|g" /tmp/sigmah-newOrganizationLaunchScript.sql sed -i "s|§OrganizationLogoFilename§|logo.png|g" /tmp/sigmah-newOrganizationLaunchScript.sql