From 84bae4a2230c19df532e1b3dcf645ab9f25e525d Mon Sep 17 00:00:00 2001 From: desertwitch <24509509+desertwitch@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:55:22 +0200 Subject: [PATCH] fix switching from 2.7.4 to 2.8.0 on live system breaking --- plugin/nut-2.8.0.plg | 4 ++++ plugin/nut.plg | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugin/nut-2.8.0.plg b/plugin/nut-2.8.0.plg index 1922c78d..3125d41f 100644 --- a/plugin/nut-2.8.0.plg +++ b/plugin/nut-2.8.0.plg @@ -334,6 +334,10 @@ rm -rf /etc/nut rm -f /etc/ups rm -rf /var/run/nut +# clean up once more in case of reinstall on live system +rm -rf /etc/nut +rm -rf /etc/ups + echo "" echo "-----------------------------------------------------------" echo " &name; has been removed." diff --git a/plugin/nut.plg b/plugin/nut.plg index 7bbf795c..1f226222 100755 --- a/plugin/nut.plg +++ b/plugin/nut.plg @@ -304,6 +304,10 @@ rm -rf &plgPATH;/ups rm -f &plgPATH;/*.txz \ &plgPATH;/*.md5 +# clean up once more in case of reinstall on live system +rm -rf /etc/nut +rm -rf /etc/ups + echo "" echo "-----------------------------------------------------------" echo " &name; has been removed."