diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index ad62d695f43..cd716e3d275 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -77,6 +77,14 @@ for files in "/etc/cont-init.d" "/etc/services.d"; do #[ "$PACKMANAGER" = "pacman" ] && PACKAGES="$PACKAGES iputils" fi + COMMAND="nmap" + if grep -q -rnw "$files/" -e "$COMMAND"; then + [ "$VERBOSE" = true ] && echo "$COMMAND required" + [ "$PACKMANAGER" = "apk" ] && PACKAGES="$PACKAGES nmap nmap-scripts + [ "$PACKMANAGER" = "apt" ] && PACKAGES="$PACKAGES nmap" + #[ "$PACKMANAGER" = "pacman" ] && PACKAGES="$PACKAGES iputils" + fi + COMMAND="cifs" if grep -q -rnw "$files/" -e "$COMMAND"; then [ "$VERBOSE" = true ] && echo "$COMMAND required"