Skip to content

Commit

Permalink
don't clean folders before install, breaks things
Browse files Browse the repository at this point in the history
  • Loading branch information
desertwitch committed Jul 26, 2023
1 parent 0ea3e32 commit 3491b31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 7 additions & 4 deletions plugin/nut-2.8.0.plg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
- add: implement battery replacement notification in settings

Thanks to forum member Rysz for the PR.
###2023.06.03
- Add Small footer style thanks ich777 for the PR.
###2023.02.14
-6.12 Dashboard support
-PHP8 fixes
-Refresh option.
###2022.03.20
-fix for filetree top level
-update nut footer
Expand Down Expand Up @@ -259,10 +265,6 @@ else
/etc/rc.d/rc.nut stop 2>/dev/null
fi

# start install always with fresh folders
rm -rf /etc/nut
rm -rf /etc/ups

# nut-2.7.4 and nut plugin expects:
# Config: /etc/nut
# Pid : /var/run/nut/upsmon.pid
Expand Down Expand Up @@ -344,6 +346,7 @@ rm -rf /var/run/nut
# in case of re-installation of package on live system
rm -rf /etc/nut
rm -rf /etc/ups
rm -rf /var/run/nut

echo ""
echo "-----------------------------------------------------------"
Expand Down
4 changes: 0 additions & 4 deletions plugin/nut.plg
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,6 @@ else
/etc/rc.d/rc.nut stop 2>/dev/null
fi

# start install always with fresh folders
rm -rf /etc/nut
rm -rf /etc/ups

# upgrade plugin package
upgradepkg --install-new &plgPATH;/&plgNAME;.txz

Expand Down

0 comments on commit 3491b31

Please sign in to comment.