Commit 6bcd6053 authored by Franco Fichtner's avatar Franco Fichtner

config: strip superfluous setting of _relayd user/group

(cherry picked from commit 6b2ec824)
parent 90c87cc6
...@@ -923,14 +923,11 @@ function upgrade_045_to_046() { ...@@ -923,14 +923,11 @@ function upgrade_045_to_046() {
} }
} }
} }
if(count($config['load_balancer']) == 0) { if (count($config['load_balancer']) == 0) {
unset($config['load_balancer']); unset($config['load_balancer']);
} }
mwexec('/usr/sbin/pw groupadd -n _relayd -g 913');
mwexec('/usr/sbin/pw useradd -n _relayd -c "Relay Daemon" -d /var/empty -s /usr/sbin/nologin -u 913 -g 913');
} }
function upgrade_046_to_047() { function upgrade_046_to_047() {
global $config; global $config;
/* Upgrade IPsec from tunnel to phase1/phase2 */ /* Upgrade IPsec from tunnel to phase1/phase2 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment