Skip to content

Commit

Permalink
put mkdir elsewhere to keep things continous
Browse files Browse the repository at this point in the history
  • Loading branch information
desertwitch committed Jul 26, 2023
1 parent fb0908d commit 0ea3e32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugin/nut.plg
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ else
# start install always with fresh folders
rm -rf /etc/nut
rm -rf /etc/ups
mkdir /etc/nut

# upgrade plugin package
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
Expand Down
5 changes: 5 additions & 0 deletions source/nut/install/doinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ if [ -L /etc/nut ]; then
mkdir /etc/nut
fi

# create nut directory
if [ ! -d /etc/nut ]; then
mkdir /etc/nut
fi

# prepare conf backup directory on flash drive, if it does not already exist
if [ ! -d $BOOT/ups ]; then
mkdir $BOOT/ups
Expand Down

0 comments on commit 0ea3e32

Please sign in to comment.