|
|
|
|
589
|
255) return;;
|
589
|
255) return;;
|
590
|
esac
|
590
|
esac
|
591
|
if [[ $irc_onion == 'no' ]]; then
|
591
|
if [[ $irc_onion == 'no' ]]; then
|
592
|
- sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
|
|
593
|
- sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
|
|
|
|
592
|
+ if grep -q ";Ports = 6667"; then
|
|
|
593
|
+ sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
|
|
594
|
+ sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
|
|
595
|
+ else
|
|
|
596
|
+ sed -i "s/Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
|
|
597
|
+ sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
|
|
598
|
+ fi
|
594
|
systemctl restart ngircd
|
599
|
systemctl restart ngircd
|
595
|
dialog --title $"IRC Server" \
|
600
|
dialog --title $"IRC Server" \
|
596
|
--msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50
|
601
|
--msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50
|
597
|
else
|
602
|
else
|
598
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
603
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
599
|
- sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
|
|
|
|
604
|
+ if grep -q ";Ports = 6667"; then
|
|
|
605
|
+ sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
|
|
606
|
+ else
|
|
|
607
|
+ sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
|
|
608
|
+ fi
|
600
|
systemctl restart ngircd
|
609
|
systemctl restart ngircd
|
601
|
dialog --title $"IRC Server" \
|
610
|
dialog --title $"IRC Server" \
|
602
|
--msgbox $"The IRC server can now be accessed via its onion address without SSL" 8 50
|
611
|
--msgbox $"The IRC server can now be accessed via its onion address without SSL" 8 50
|