diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-07-02 10:19:35 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-07-02 10:19:35 -0700 |
commit | c286b42418c3d7614225b1226632a25ac513994b (patch) | |
tree | 9abafcb56053587690f66c77323815e50cfbc2ad | |
parent | f2cdf27dd9c45f91f4184b81ea3b9be7c5d88173 (diff) | |
parent | 68462dad3fd3871ef7be05cef0fd09be7fcb70cc (diff) |
Merge pull request #569 from ShutterQuick/inspircd+asrootfix
Made the launch script aware of --runasroot
-rw-r--r-- | make/template/inspircd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/inspircd b/make/template/inspircd index 322ee2cd6..139177100 100644 --- a/make/template/inspircd +++ b/make/template/inspircd @@ -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; |