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
f48b060fa752 ("nut: Fix upsd runs as root")
Closes: #6697 (properly)
Signed-off-by: Daniel F. Dickinson <redacted>
}
build_config() {
- local RUNAS=nut
local STATEPATH=/var/run/nut
mkdir -m 0755 -p "$(dirname "$UPS_C")"
}
start_server_instance() {
- local RUNAS
+ local RUNAS=nut
build_config
[ "$haveserver" != 1 ] && return