Skip to content

Commit

Permalink
Update ha_automatic_packages.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Sep 30, 2023
1 parent db3fa0d commit 6fa8318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .templates/ha_automatic_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for files in "/etc/cont-init.d" "/etc/services.d"; do
fi

COMMAND="mount"
if grep -q -rnw "$files/" -e "$COMMAND" && ! command -v $COMMAND &>/dev/null; then
if grep -q -rnw "$files/" -e "$COMMAND"; then
[ "$VERBOSE" = true ] && echo "$COMMAND required"
[ "$PACKMANAGER" = "apk" ] && PACKAGES="$PACKAGES exfat-fuse exfat-utils ntfs-3g squashfs-tools fuse lsblk"
[ "$PACKMANAGER" = "apt" ] && PACKAGES="$PACKAGES exfat* ntfs* squashfs-tools lsblk"
Expand All @@ -77,7 +77,7 @@ for files in "/etc/cont-init.d" "/etc/services.d"; do
fi

COMMAND="cifs"
if grep -q -rnw "$files/" -e "$COMMAND" && ! command -v $COMMAND &>/dev/null; then
if grep -q -rnw "$files/" -e "$COMMAND"; then
[ "$VERBOSE" = true ] && echo "$COMMAND required"
[ "$PACKMANAGER" = "apk" ] && PACKAGES="$PACKAGES cifs-utils keyutils"
[ "$PACKMANAGER" = "apt" ] && PACKAGES="$PACKAGES cifs-utils keyutils"
Expand Down

0 comments on commit 6fa8318

Please sign in to comment.