diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-23 09:08:39 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-23 09:08:39 -0300 |
commit | bdbb4dba63f2a135276a7980d5e75dfc4bb83607 (patch) | |
tree | 69ad6b0526bb7a1d31c7b7956f81661696c5fefd | |
parent | 3f257101f44f5a3d1547d1d442761d7fdcf597fd (diff) | |
download | pfsense-bdbb4dba63f2a135276a7980d5e75dfc4bb83607.zip pfsense-bdbb4dba63f2a135276a7980d5e75dfc4bb83607.tar.gz |
Make sure unbound user and group is also created during upgrade config
-rw-r--r-- | etc/inc/upgrade_config.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 6261b49..48bc846 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -3377,6 +3377,10 @@ function upgrade_109_to_110() { function upgrade_110_to_111() { global $config; + /* Make sure unbound user exist */ + mwexec('/usr/sbin/pw groupadd -n unbound -g 59', true); + mwexec('/usr/sbin/pw useradd -n unbound -c "Unbound DNS Resolver" -d /var/unbound -s /usr/sbin/nologin -u 59 -g 59', true); + if (!isset($config['installedpackages']['unbound']['config'][0])) return; |