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 Oct 3, 2023
1 parent 6eb6782 commit 529dcc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .templates/ha_automatic_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 529dcc1

Please sign in to comment.