]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Merge pull request #571 from ShutterQuick/inspircd+checkclone
authorAttila Molnar <attilamolnar@hush.com>
Tue, 2 Jul 2013 18:10:36 +0000 (11:10 -0700)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 2 Jul 2013 18:10:36 +0000 (11:10 -0700)
Allow for skipping clone checking before DNS is complete.

make/template/inspircd

index 322ee2cd6894eaf79b7d944306022c7786121836..139177100a9f46a7245420a74dda9b1ec05179fa 100644 (file)
@@ -33,7 +33,7 @@ my $executable        =       "@EXECUTABLE@";
 my $version    =       "@VERSION@";
 my $uid = "@UID@";
 
-if ($< == 0 || $> == 0) {
+if (!("--runasroot" ~~ @ARGV) && ($< == 0 || $> == 0)) {
        if ($uid !~ /^\d+$/) {
                # Named UID, look it up
                $uid = getpwnam $uid;