]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki-update-wikilist
Merge branch 'master' into debian-jessie-backports
[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.
 #!/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;
 use warnings;
 use strict;
 use English;
@@ -30,6 +30,9 @@ while (<$list>) {
                                $seen=1;
                                push @lines, $_;
                        }
                                $seen=1;
                                push @lines, $_;
                        }
+                       else {
+                               $changed=1;
+                       }
                }
                else {
                        push @lines, $_;
                }
                else {
                        push @lines, $_;