Skip to content
Snippets Groups Projects
Commit 4eceef05 authored by Bob Mottram's avatar Bob Mottram
Browse files

port changing

parent 6131d091
No related branches found
No related tags found
No related merge requests found
......@@ -589,7 +589,7 @@ function irc_via_onion {
255) return;;
esac
if [[ $irc_onion == 'no' ]]; then
if grep -q ";Ports = 6667"; then
if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
else
......@@ -601,7 +601,7 @@ function irc_via_onion {
--msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50
else
sed -i "s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
if grep -q ";Ports = 6667"; then
if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
else
sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment