mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 17:08:19 +01:00
Update automatic_packages.sh
This commit is contained in:
@@ -130,6 +130,13 @@ for files in "/etc/cont-init.d" "/etc/services.d" "/scripts"; do
|
||||
[ "$PACKMANAGER" = "apt" ] && PACKAGES="$PACKAGES wget"
|
||||
fi
|
||||
|
||||
COMMAND="snap"
|
||||
if grep -q -rnw "$files/" -e "$COMMAND" && ! command -v $COMMAND &>/dev/null; then
|
||||
[ "$VERBOSE" = true ] && echo "$COMMAND required"
|
||||
[ "$PACKMANAGER" = "apk" ] && PACKAGES="$PACKAGES"
|
||||
[ "$PACKMANAGER" = "apt" ] && PACKAGES="$PACKAGES snapd"
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
####################
|
||||
|
||||
Reference in New Issue
Block a user