Connect to the local irc server
This commit is contained in:
parent
1b239f9be8
commit
e806fc4dff
|
@ -138,8 +138,7 @@ function add_user_irc_bouncer {
|
|||
echo ' LoadModule = chansaver' >> /home/znc/.znc/configs/znc.conf
|
||||
echo ' LoadModule = simple_away' >> /home/znc/.znc/configs/znc.conf
|
||||
echo '' >> /home/znc/.znc/configs/znc.conf
|
||||
echo " Server = ${DEFAULT_DOMAIN_NAME} ${IRC_PORT} ${IRC_PASSWORD}" >> /home/znc/.znc/configs/znc.conf
|
||||
#echo " Server = ${IRC_ONION_HOSTNAME} ${IRC_PORT} ${IRC_PASSWORD}" >> /home/znc/.znc/configs/znc.conf
|
||||
echo " Server = 127.0.0.1 ${IRC_PORT} ${IRC_PASSWORD}" >> /home/znc/.znc/configs/znc.conf
|
||||
echo '' >> /home/znc/.znc/configs/znc.conf
|
||||
echo " <Chan #${PROJECT_NAME}>" >> /home/znc/.znc/configs/znc.conf
|
||||
echo ' </Chan>' >> /home/znc/.znc/configs/znc.conf
|
||||
|
@ -308,7 +307,7 @@ function irc_set_global_password {
|
|||
sed -i "s|Salt = .*|Salt = ${ZNC_SALT}|g" /home/znc/.znc/configs/znc.conf
|
||||
|
||||
# change the server password
|
||||
sed -i "s|Server = ${DEFAULT_DOMAIN_NAME}.*|Server = ${DEFAULT_DOMAIN_NAME} ${IRC_PORT} ${NEW_IRC_PASSWORD}|g" /home/znc/.znc/configs/znc.conf
|
||||
sed -i "s|Server = 127.0.0.1.*|Server = 127.0.0.1 ${IRC_PORT} ${NEW_IRC_PASSWORD}|g" /home/znc/.znc/configs/znc.conf
|
||||
|
||||
# Update the password in the readme
|
||||
sed -i "s|IRC login password.*|IRC login password: $NEW_IRC_PASSWORD|g" /home/$MY_USERNAME/README
|
||||
|
@ -557,17 +556,14 @@ function install_irc_client {
|
|||
echo ' autoconnect = "no";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' },' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' {' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo " address = \"127.0.0.1\";" >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' use_ssl = "no";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' ssl_verify = "no";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
if [[ ${ONION_ONLY} == 'no' ]]; then
|
||||
echo " address = \"${DEFAULT_DOMAIN_NAME}\";" >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo " port = \"${IRC_BOUNCER_PORT}\";" >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' use_ssl = "yes";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' ssl_verify = "yes";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
else
|
||||
IRC_ONION_HOSTNAME=$(cat ${COMPLETION_FILE} | grep "irc onion domain" | head -n 1 | awk -F ':' '{print $2}')
|
||||
echo " address = \"127.0.0.1\";" >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo " port = \"${IRC_ONION_PORT}\";" >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' use_ssl = "no";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' ssl_verify = "no";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
fi
|
||||
echo ' chatnet = "Freedombone";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
echo ' autoconnect = "yes";' >> /home/${MY_USERNAME}/.irssi/config
|
||||
|
|
Loading…
Reference in New Issue