addon-vscode/vscode/rootfs/etc/cont-init.d/80-user-packages.sh
Timmo 313cc5f1d9 🚑 Fixes installation of custom packages (#1)
* 🔥 Fix typo for installing packages

* Update 80-user-packages.sh
2019-03-25 01:17:37 +01:00

14 lines
605 B
Bash

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Hass.io Add-ons: Visual Studio Code
# Install user configured/requested packages
# ==============================================================================
if bashio::config.has_value 'packages'; then
apt update \
|| bashio::exit.nok 'Failed updating Ubuntu packages repository indexes'
for package in $(bashio::config 'packages'); do
apt-get install -y "$package" \
|| bashio::exit.nok "Failed installing package ${package}"
done
fi