This commit is contained in:
Bob Mottram 2016-10-28 19:33:35 +01:00
parent 8579222ed0
commit 97efafc2da
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ function add_user_irc_bouncer {
stop_irc_bouncer
ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}')"
ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}' | cut -c1-20)"
new_user_hash=$(echo "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}')
echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf