Cleaned up testing users, and added fully qualified path to znc script
This commit is contained in:
parent
fc39da80bf
commit
f22fe42e1b
|
@ -3,6 +3,7 @@
|
||||||
# ZNC account creation
|
# ZNC account creation
|
||||||
CONF="/var/lib/znc/.znc/configs/znc.conf"
|
CONF="/var/lib/znc/.znc/configs/znc.conf"
|
||||||
PID=$(pgrep -u znc znc)
|
PID=$(pgrep -u znc znc)
|
||||||
|
NEWCONF="/var/lib/znc/znc_account.newconf"
|
||||||
|
|
||||||
# $username and $password are retrieved from create-account script
|
# $username and $password are retrieved from create-account script
|
||||||
if [[ -z $1 || -z $2 ]]
|
if [[ -z $1 || -z $2 ]]
|
||||||
|
@ -25,7 +26,7 @@ kill -s USR1 $PID # Rewrite znc.conf
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# set username and password
|
# set username and password
|
||||||
sed s/newuser/$username/g znc_account.newconf >> $CONF
|
sed s/newuser/$username/g $NEWCONF >> $CONF
|
||||||
expect << EOF | grep -E 'Hash|Salt' | tr -d \\r >> $CONF
|
expect << EOF | grep -E 'Hash|Salt' | tr -d \\r >> $CONF
|
||||||
spawn znc --makepass
|
spawn znc --makepass
|
||||||
expect "*Enter password: "
|
expect "*Enter password: "
|
||||||
|
|
|
@ -95,4 +95,3 @@
|
||||||
- include: users/moskrin.yml
|
- include: users/moskrin.yml
|
||||||
- include: users/southerntofu.yml
|
- include: users/southerntofu.yml
|
||||||
- include: users/dariusz.yml
|
- include: users/dariusz.yml
|
||||||
- include: users/testuser.yml
|
|
||||||
|
|
Loading…
Reference in New Issue