Bouncer port

This commit is contained in:
Bob Mottram 2016-10-28 15:19:22 +01:00
parent 4711ce8265
commit 43b33f6f5e
1 changed files with 14 additions and 3 deletions

View File

@ -127,6 +127,16 @@ function add_user_irc_bouncer {
echo ' </Network>' >> /home/znc/.znc/config/znc.conf
echo '</User>' >> /home/znc/.znc/config/znc.conf
mkdir -p /home/znc/.znc/moddata/webadmin
mkdir -p /home/znc/.znc/users/${new_username}/moddata
mkdir -p /home/znc/.znc/users/${new_username}/networks
mkdir /home/znc/.znc/users/${new_username}/moddata/chanserver
mkdir /home/znc/.znc/users/${new_username}/moddata/controlpanel
mkdir /home/znc/.znc/users/${new_username}/moddata/perform
mkdir /home/znc/.znc/users/${new_username}/moddata/webadmin
mkdir -p /home/znc/.znc/users/${new_username}/networks/${PROJECT_NAME}/moddata/chansaver
mkdir -p /home/znc/.znc/users/${new_username}/networks/${PROJECT_NAME}/moddata/simple_away
chown -R znc:znc /home/znc/.znc
start_irc_bouncer
@ -535,22 +545,23 @@ function install_irc_bouncer {
echo 'Version = 1.4' > /home/znc/.znc/configs/znc.conf
echo '<Listener l>' >> /home/znc/.znc/configs/znc.conf
echo " Port = $IRC_PORT" >> /home/znc/.znc/configs/znc.conf
echo " Port = $IRC_BOUNCER_PORT" >> /home/znc/.znc/configs/znc.conf
echo ' IPv4 = true' >> /home/znc/.znc/configs/znc.conf
echo ' IPv6 = true' >> /home/znc/.znc/configs/znc.conf
echo ' SSL = true' >> /home/znc/.znc/configs/znc.conf
echo '</Listener>' >> /home/znc/.znc/configs/znc.conf
echo 'LoadModule = webadmin' >> /home/znc/.znc/configs/znc.conf
chown -R znc:znc /home/znc/.znc
add_user_irc_bouncer "${MY_USERNAME}" "${IRC_PASSWORD}" true
# certificate for use with SSL
start_irc_bouncer
function_check cron_add_mins
cron_add_mins 10 "/usr/bin/znc 2> /dev/null" znc
add_user_irc_bouncer "${MY_USERNAME}" "${IRC_PASSWORD}" true
install_completed irc_bouncer
}