nut: really run upsd as non-root
One local removal was missed in last push of this fix, so
in certain circumstances upsd would run as root even when
it shouldn't.
Fixes f48b060fa7
("nut: Fix upsd runs as root")
Closes: #6697 (properly)
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
parent
f916a7e0eb
commit
2d87aa40c8
1 changed files with 1 additions and 2 deletions
|
@ -225,7 +225,6 @@ build_global_driver_config() {
|
|||
}
|
||||
|
||||
build_config() {
|
||||
local RUNAS=nut
|
||||
local STATEPATH=/var/run/nut
|
||||
|
||||
mkdir -m 0755 -p "$(dirname "$UPS_C")"
|
||||
|
@ -281,7 +280,7 @@ start_driver_instance() {
|
|||
}
|
||||
|
||||
start_server_instance() {
|
||||
local RUNAS
|
||||
local RUNAS=nut
|
||||
build_config
|
||||
|
||||
[ "$haveserver" != 1 ] && return
|
||||
|
|
Loading…
Reference in a new issue