summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-07-02 10:19:35 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-07-02 10:19:35 -0700
commitc286b42418c3d7614225b1226632a25ac513994b (patch)
tree9abafcb56053587690f66c77323815e50cfbc2ad
parentf2cdf27dd9c45f91f4184b81ea3b9be7c5d88173 (diff)
parent68462dad3fd3871ef7be05cef0fd09be7fcb70cc (diff)
Merge pull request #569 from ShutterQuick/inspircd+asrootfix
Made the launch script aware of --runasroot
-rw-r--r--make/template/inspircd2
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;