Use first field

This commit is contained in:
Bob Mottram 2014-10-14 20:42:51 +01:00
parent 6782e7f73f
commit 8437c0408b
1 changed files with 1 additions and 1 deletions

View File

@ -3541,7 +3541,7 @@ function install_wiki {
if [ ! $WIKI_ADMIN_PASSWORD ]; then
WIKI_ADMIN_PASSWORD=$(openssl rand -base64 16)
fi
HASHED_WIKI_PASSWORD=$(echo -n "$WIKI_ADMIN_PASSWORD" | md5sum)
HASHED_WIKI_PASSWORD=$(echo -n "$WIKI_ADMIN_PASSWORD" | md5sum | awk -F ' ' '{print $1}')
echo -n "$MY_USERNAME:$HASHED_WIKI_PASSWORD:$MY_NAME:$MY_EMAIL:admin,user,upload" > /var/lib/dokuwiki/acl/users.auth.php
chmod 640 /var/lib/dokuwiki/acl/users.auth.php