Bouncer port
This commit is contained in:
parent
4711ce8265
commit
43b33f6f5e
|
@ -127,6 +127,16 @@ function add_user_irc_bouncer {
|
||||||
echo ' </Network>' >> /home/znc/.znc/config/znc.conf
|
echo ' </Network>' >> /home/znc/.znc/config/znc.conf
|
||||||
echo '</User>' >> /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
|
chown -R znc:znc /home/znc/.znc
|
||||||
|
|
||||||
start_irc_bouncer
|
start_irc_bouncer
|
||||||
|
@ -535,22 +545,23 @@ function install_irc_bouncer {
|
||||||
|
|
||||||
echo 'Version = 1.4' > /home/znc/.znc/configs/znc.conf
|
echo 'Version = 1.4' > /home/znc/.znc/configs/znc.conf
|
||||||
echo '<Listener l>' >> /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 ' IPv4 = true' >> /home/znc/.znc/configs/znc.conf
|
||||||
echo ' IPv6 = 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 ' SSL = true' >> /home/znc/.znc/configs/znc.conf
|
||||||
echo '</Listener>' >> /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
|
chown -R znc:znc /home/znc/.znc
|
||||||
|
|
||||||
|
add_user_irc_bouncer "${MY_USERNAME}" "${IRC_PASSWORD}" true
|
||||||
|
|
||||||
# certificate for use with SSL
|
# certificate for use with SSL
|
||||||
start_irc_bouncer
|
start_irc_bouncer
|
||||||
|
|
||||||
function_check cron_add_mins
|
function_check cron_add_mins
|
||||||
cron_add_mins 10 "/usr/bin/znc 2> /dev/null" znc
|
cron_add_mins 10 "/usr/bin/znc 2> /dev/null" znc
|
||||||
|
|
||||||
add_user_irc_bouncer "${MY_USERNAME}" "${IRC_PASSWORD}" true
|
|
||||||
|
|
||||||
install_completed irc_bouncer
|
install_completed irc_bouncer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue