]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki-update-wikilist
thanks for response; follow-up; I've got something working…
[git.ikiwiki.info.git] / ikiwiki-update-wikilist
index a6425f011c6a7e04c281cdfe8f70094d302818e5..56d6e07319094dcc77d8fea283bcdf4b0b0b734d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -t
 # Add a user to the system wide wikilist.
-# This script can safely be made suid.
+# This script can safely be made suid or put in /etc/sudoers.
 use warnings;
 use strict;
 use English;
@@ -30,6 +30,9 @@ while (<$list>) {
                                $seen=1;
                                push @lines, $_;
                        }
+                       else {
+                               $changed=1;
+                       }
                }
                else {
                        push @lines, $_;