소스 검색

port changing

Bob Mottram 9 년 전
부모
커밋
4eceef0502
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/freedombone-controlpanel

+ 2
- 2
src/freedombone-controlpanel 파일 보기

@@ -589,7 +589,7 @@ function irc_via_onion {
589 589
         255) return;;
590 590
     esac
591 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 593
             sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
594 594
             sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
595 595
         else
@@ -601,7 +601,7 @@ function irc_via_onion {
601 601
                --msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50
602 602
     else
603 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 605
             sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
606 606
         else
607 607
             sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf