From e49ad26a8f213c7073a3f30b88aa387bdbc0adfc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Oct 2014 22:15:11 +0100 Subject: [PATCH] Try again --- install-freedombone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 68a013e5..bda0c5b9 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -3864,7 +3864,7 @@ function install_blog { # create a user cp /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/username.ini.example /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini - HASHED_BLOG_PASSWORD="$(echo $FULLBLOG_ADMIN_PASSWORD | sha256sum | awk -F ' ' '{print $1}')" + HASHED_BLOG_PASSWORD="$(echo -n $FULLBLOG_ADMIN_PASSWORD | sha256sum | awk -F ' ' '{print $1}')" sed -i "s|yourpassword|$HASHED_BLOG_PASSWORD|g" /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini sed -i 's/encryption = clear/encryption = "sha256"/g' /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini