nut: Fix upsd runs as root
authorDaniel F. Dickinson <cshored@thecshore.com>
Wed, 5 Dec 2018 06:31:40 +0000 (01:31 -0500)
committerDaniel F. Dickinson <cshored@thecshore.com>
Thu, 6 Dec 2018 08:02:29 +0000 (03:02 -0500)
commitf48b060fa752fdf6556080dc1af221363f9b1ef4
tree95fdb409aa28f1f19d15254b48073b5ec23687ac
parent5dfd1bcd744f341ba36c18f70ea291dda8abf2a0
nut: Fix upsd runs as root

Closes #6997 - Allows upsd to runas a non-privileged user.
If any driver is running as non-privileged user, the last driver's
user will be used as the server non-privileged user, otherwise the
user specified in config upsd, otherwise nut. Previously the
localisation of RUNAS variable was in the wrong locations.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
net/nut/Makefile
net/nut/files/nut-server.init