mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-08 06:50:58 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -4,8 +4,13 @@
|
|||||||
# INIT #
|
# INIT #
|
||||||
########
|
########
|
||||||
|
|
||||||
|
# Messages ?
|
||||||
VERBOSE=false
|
VERBOSE=false
|
||||||
|
# Non interactive
|
||||||
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
# Allow undefined variables
|
||||||
set +u 2>/dev/null
|
set +u 2>/dev/null
|
||||||
|
# Get env variables
|
||||||
PACKAGES="${@:-}"
|
PACKAGES="${@:-}"
|
||||||
[ $VERBOSE = true ] && echo "ENV : $PACKAGES"
|
[ $VERBOSE = true ] && echo "ENV : $PACKAGES"
|
||||||
|
|
||||||
@@ -115,6 +120,10 @@ done
|
|||||||
[ $VERBOSE = true ] && echo "installing packages $PACKAGES"
|
[ $VERBOSE = true ] && echo "installing packages $PACKAGES"
|
||||||
eval "$PACKAGES"
|
eval "$PACKAGES"
|
||||||
|
|
||||||
|
##########################
|
||||||
|
# CORRECT INSTALLED APPS #
|
||||||
|
##########################
|
||||||
|
|
||||||
# Replace nginx if installed
|
# Replace nginx if installed
|
||||||
if ls /etc/nginx2 1> /dev/null 2>&1; then
|
if ls /etc/nginx2 1> /dev/null 2>&1; then
|
||||||
[ $VERBOSE = true ] && echo "replace nginx2"
|
[ $VERBOSE = true ] && echo "replace nginx2"
|
||||||
|
|||||||
Reference in New Issue
Block a user