chiark / gitweb /
Change defaults for log access to "true"
[modbot-mtm.git] / inews.INO
old mode 100644 (file)
new mode 100755 (executable)
index 1b8892f..99c750a
--- a/inews.INO
+++ b/inews.INO
@@ -1,9 +1,6 @@
 #!/bin/sh
 set -e
 
-#real=false
-real=true
-
 export NNTPSERVER=nnrp.chiark.greenend.org.uk
 export NNTPAUTH='md5cookie1way chiark'
 
@@ -17,11 +14,11 @@ set +e
 output=`
        set -e
        exec 2>&1
-       if $real; then
+       if [ x%DIVERTPOSTINGS% = x ]; then
                inews -h -Q -R <$tf
        else
                (set -e
-                echo "Newsgroups: %TESTGROUP%"
+                echo "Newsgroups: %DIVERTPOSTINGS%"
                 sed 's/^Newsgroups:/X-Would-Newsgroups:/' $tf) | inews -h
        fi
 `