diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index 75b91715cf3..558a2b521a0 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -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" @@ -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"