Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-08 14:56:20 +01:00
committed by GitHub
parent 38355de60a
commit 602dc46c28

View File

@@ -61,7 +61,16 @@ if ls $files/*nginx* 1> /dev/null 2>&1; then
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES nginx"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES nginx"
fi
done
if [ $(grep -rnw "$files" -e 'git' &>/dev/null) ]; then
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git"
fi
if [ $(grep -rnw "$files" -e 'sponge' &>/dev/null) ]; then
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils"
fi
####################
# INSTALL ELEMENTS #