From 6c4d6da2c5122b19869b6b938ae5c037b7d4838c Mon Sep 17 00:00:00 2001 From: desertwitch <24509509+desertwitch@users.noreply.github.com> Date: Wed, 26 Jul 2023 17:19:29 +0200 Subject: [PATCH] fix 2.8.0 permissions issue 2.8.0 uses /var/state/ups instead of /var/run/nut folder, add permissioning for correct folder access --- source/nut/etc/rc.d/rc.nut | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/nut/etc/rc.d/rc.nut b/source/nut/etc/rc.d/rc.nut index 86356311..c449e071 100755 --- a/source/nut/etc/rc.d/rc.nut +++ b/source/nut/etc/rc.d/rc.nut @@ -214,6 +214,8 @@ write_config() { chmod 640 /etc/nut/* chown root:nut /var/run/nut chmod 0770 /var/run/nut + chown root:nut /var/state/ups + chmod 0770 /var/state/ups #chown -R 218:218 /etc/nut #chmod -R 0644 /etc/nut fi