Skip to content

Commit

Permalink
fix && breaking xml
Browse files Browse the repository at this point in the history
  • Loading branch information
desertwitch committed Jul 26, 2023
1 parent 4f1e4c6 commit 3cdf57a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion plugin/nut-2.8.0.plg
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
else
# if upgrading on live system, stop the services here
# to release any remaining file locks before patching
[ -x /etc/rc.d/rc.nut ] && /etc/rc.d/rc.nut stop 2>/dev/null
if [ -x /etc/rc.d/rc.nut ]; then
/etc/rc.d/rc.nut stop 2>/dev/null
fi

# nut-2.7.4 and nut plugin expects:
# Config: /etc/nut
Expand Down
4 changes: 3 additions & 1 deletion plugin/nut.plg
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
else
# if upgrading on live system, stop the services here
# to release any remaining file locks before patching
[ -x /etc/rc.d/rc.nut ] && /etc/rc.d/rc.nut stop 2>/dev/null
if [ -x /etc/rc.d/rc.nut ]; then
/etc/rc.d/rc.nut stop 2>/dev/null
fi

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

0 comments on commit 3cdf57a

Please sign in to comment.