|
|
|
|
589
|
255) return;;
|
589
|
255) return;;
|
590
|
esac
|
590
|
esac
|
591
|
if [[ $irc_onion == 'no' ]]; then
|
591
|
if [[ $irc_onion == 'no' ]]; then
|
592
|
- if grep -q ";Ports = 6667"; then
|
|
|
|
|
592
|
+ if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
|
593
|
sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
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
|
594
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
595
|
else
|
595
|
else
|
|
|
|
|
601
|
--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
|
602
|
else
|
602
|
else
|
603
|
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
|
604
|
- if grep -q ";Ports = 6667"; then
|
|
|
|
|
604
|
+ if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
|
605
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
605
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
606
|
else
|
606
|
else
|
607
|
sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
607
|
sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|