diff options
author | Attila Molnar <attilamolnar@hush.com> | 2012-11-18 14:05:45 -0800 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2012-11-18 14:05:45 -0800 |
commit | a23dc3de455c6224ca74ed5d155eb14fd92caf9f (patch) | |
tree | 525e39d4d58b014b41a760d3d883279118136bea /configure | |
parent | 562380da4d9b15fa9baabbcccc4019349965b1d6 (diff) | |
parent | 98b4025af9bbbb40cf74552016972247605e0e1e (diff) |
Merge pull request #365 from StevenVanAcker/unhook-uid
unhook --uid from --system in configure script
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -152,11 +152,11 @@ $config{BASE_DIR} = $config{ME}."/run"; if (defined $opt_base_dir) { $config{BASE_DIR} = $opt_base_dir; -} elsif (defined $opt_system || defined $opt_uid) { +} elsif (defined $opt_system) { $config{BASE_DIR} = '/var/lib/inspircd'; } -if (defined $opt_system || defined $opt_uid) { +if (defined $opt_system) { $config{UID} = $opt_uid || 'ircd'; $config{CONFIG_DIR} = '/etc/inspircd'; $config{MODULE_DIR} = '/usr/lib/inspircd'; @@ -165,7 +165,7 @@ if (defined $opt_system || defined $opt_uid) { $config{DATA_DIR} = '/var/inspircd'; $config{LOG_DIR} = '/var/log/inspircd'; } else { - $config{UID} = $<; + $config{UID} = $opt_uid || $<; $config{CONFIG_DIR} = resolve_directory($config{BASE_DIR}."/conf"); # Configuration Directory $config{MODULE_DIR} = resolve_directory($config{BASE_DIR}."/modules"); # Modules Directory $config{BINARY_DIR} = resolve_directory($config{BASE_DIR}."/bin"); # Binary Directory |