mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 13:54:05 +02: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"
|
[ "$PACKMANAGER" = "apt" ] && PACKAGES="$PACKAGES wget"
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
|||||||
Reference in New Issue
Block a user