Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-10 21:27:06 +01:00
committed by GitHub
parent 9f37bc821a
commit 4610495432

View File

@@ -4,8 +4,13 @@
# INIT #
########
# Messages ?
VERBOSE=false
# Non interactive
export DEBIAN_FRONTEND="noninteractive"
# Allow undefined variables
set +u 2>/dev/null
# Get env variables
PACKAGES="${@:-}"
[ $VERBOSE = true ] && echo "ENV : $PACKAGES"
@@ -115,6 +120,10 @@ done
[ $VERBOSE = true ] && echo "installing packages $PACKAGES"
eval "$PACKAGES"
##########################
# CORRECT INSTALLED APPS #
##########################
# Replace nginx if installed
if ls /etc/nginx2 1> /dev/null 2>&1; then
[ $VERBOSE = true ] && echo "replace nginx2"