setup znc only after request. (I don't want to have to stop the service anymore when creating an account.)

This commit is contained in:
creme 2020-01-17 00:59:22 +01:00
parent d3d0b197ac
commit 93e39d205e
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 4 additions and 4 deletions

View File

@ -133,10 +133,10 @@ add_user() {
chmod go-r /home/"$user"/.muttrc
printf '\n~%s\n' "$user" > /home/"$user"/.mutt/signature
# setup znc account
sudo -u znc pkill -SIGUSR1 znc && pkill znc
sudo -u znc /srv/znc/add_znc_user.sh "$user"
[ -z "$no_znc" ] && systemctl start znc.service
# setup znc account (only after request..)
#sudo -u znc pkill -SIGUSR1 znc && pkill znc
#sudo -u znc /srv/znc/add_znc_user.sh "$user"
#[ -z "$no_znc" ] && systemctl start znc.service
# setup weechat
sed -i s/_username_/"$user"/g /home/"$user"/.weechat/irc.conf