From b9fa436070a90bdfb2578275356b721dde7b7a22 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Oct 2016 17:05:50 +0100 Subject: [PATCH] Set irc password in znc config --- src/freedombone-app-irc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/freedombone-app-irc b/src/freedombone-app-irc index e18cfb99..1da9eca6 100755 --- a/src/freedombone-app-irc +++ b/src/freedombone-app-irc @@ -100,8 +100,7 @@ function add_user_irc_bouncer { stop_irc_bouncer - new_user_salt_base1="$(create_password 20)" - new_user_salt_base2=$(echo "$new_user_salt_base1" | sed "s|#|.|g") + new_user_salt_base2=$(echo "$IRC_PASSWORD" | sed "s|#|.|g") new_user_salt=$(echo "$new_user_salt_base2" | sed "s|#|.|g") new_user_hash=$(echo "${new_user_password}${new_user_salt}" | sha256sum) new_user_pass="sha256#${new_user_hash}#${new_user_salt}#"