mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -36,6 +36,14 @@ PACKAGES="$PACKAGES jq curl"
|
|||||||
# FOR EACH SCRIPT, SELECT PACKAGES
|
# FOR EACH SCRIPT, SELECT PACKAGES
|
||||||
##################################
|
##################################
|
||||||
|
|
||||||
|
# In etc
|
||||||
|
if ls /etc/nginx 1> /dev/null 2>&1; then
|
||||||
|
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES nginx"
|
||||||
|
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES nginx"
|
||||||
|
mv /etc/nginx /etc/ngin2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Scripts
|
||||||
for files in "/scripts" "/etc/cont-init.d" "/etc"; do
|
for files in "/scripts" "/etc/cont-init.d" "/etc"; do
|
||||||
if ls $files/*smb* 1> /dev/null 2>&1; then
|
if ls $files/*smb* 1> /dev/null 2>&1; then
|
||||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES cifs-utils keyutils samba samba-client"
|
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES cifs-utils keyutils samba samba-client"
|
||||||
@@ -57,11 +65,6 @@ if ls $files/*yaml* 1> /dev/null 2>&1; then
|
|||||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES yamllint"
|
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES yamllint"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ls $files/*nginx* 1> /dev/null 2>&1; then
|
|
||||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES nginx"
|
|
||||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES nginx"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $(grep -rnw "$files" -e 'git' &>/dev/null) ]; then
|
if [ $(grep -rnw "$files" -e 'git' &>/dev/null) ]; then
|
||||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git"
|
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git"
|
||||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git"
|
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git"
|
||||||
@@ -79,6 +82,11 @@ done
|
|||||||
|
|
||||||
eval "$PACKAGES"
|
eval "$PACKAGES"
|
||||||
|
|
||||||
|
# Replace nginx if installed
|
||||||
|
if [ -d /etc/nginx2 ]; then
|
||||||
|
cp -rlf /etc/nginx2 /etc/nginx && rm -r /etc/nginx2
|
||||||
|
fi
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# INSTALL BASHIO #
|
# INSTALL BASHIO #
|
||||||
##################
|
##################
|
||||||
|
|||||||
Reference in New Issue
Block a user