mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-11 00:49:59 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user