diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-04-26 11:56:05 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-27 01:05:30 -0500 |
commit | c0d46116f3696c825e7d46da166302666dd20a53 (patch) | |
tree | 56d28d5b9ec98b13828fc4f9e2ad7daff514dd40 | |
parent | ed507416000394d2898838f2130415db8648315b (diff) |
system/nut: Dynamically create /var/run/nut/
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | system/nut/rc.ups | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/nut/rc.ups b/system/nut/rc.ups index 0d9f4bc76918..37916951bd92 100644 --- a/system/nut/rc.ups +++ b/system/nut/rc.ups @@ -49,6 +49,9 @@ stop() { case "$1" in start) # starts everything (for a ups server box) + mkdir -p /var/run/nut + chown $NUTUSER:$NUTGROUP /var/run/nut + chmod 0770 /var/run/nut start_driver start_upsd start_upsmon |