mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -8,13 +8,6 @@ set +u 2>/dev/null
|
|||||||
PACKAGES="${@:-}"
|
PACKAGES="${@:-}"
|
||||||
VERBOSE=true
|
VERBOSE=true
|
||||||
|
|
||||||
################################
|
|
||||||
# CHECK WHICH STRATEGY IS USED #
|
|
||||||
################################
|
|
||||||
|
|
||||||
if ls /etc/cont-init.d 1> /dev/null 2>&1; then SCRIPTSTRATEGY="/etc/cont-init.d"; fi
|
|
||||||
if ls /scripts 1> /dev/null 2>&1; then SCRIPTSTRATEGY="/scripts"; fi
|
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# CHECK WHICH BASE IS USED #
|
# CHECK WHICH BASE IS USED #
|
||||||
############################
|
############################
|
||||||
@@ -54,7 +47,9 @@ if ls /etc/nginx 1> /dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
for files in "$SCRIPTSTRATEGY"; do
|
for files in "/etc/cont-init.d" "/scripts"; do
|
||||||
|
# Next directory if does not exists
|
||||||
|
if ! ls $files 1> /dev/null 2>&1; then continue; fi
|
||||||
|
|
||||||
if ls $files/*smb* 1> /dev/null 2>&1; then
|
if ls $files/*smb* 1> /dev/null 2>&1; then
|
||||||
[ $VERBOSE = true ] && echo "smb found"
|
[ $VERBOSE = true ] && echo "smb found"
|
||||||
|
|||||||
Reference in New Issue
Block a user