mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
hadolint
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Define home
|
||||
HOME="/share/webtop"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Uprade
|
||||
echo "Updating distribution"
|
||||
@@ -8,20 +9,20 @@ apt-get -y upgrade >/dev/null || true
|
||||
|
||||
# Fix mate software center
|
||||
if [ -f /usr/lib/dbus-1.0/dbus-daemon-launch-helper ]; then
|
||||
echo "Allow software center"
|
||||
chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
|
||||
service dbus restart
|
||||
echo "Allow software center"
|
||||
chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
|
||||
service dbus restart
|
||||
fi
|
||||
|
||||
# Install specific apps
|
||||
if bashio::config.has_value 'additional_apps'; then
|
||||
bashio::log.info "Installing additional apps :"
|
||||
# Install apps
|
||||
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
|
||||
bashio::log.green "... $APP"
|
||||
# Test install with both apt-get and snap
|
||||
apt-get install -yqq $APP &>/dev/null \
|
||||
&& bashio::log.green "... done" \
|
||||
|| bashio::log.red "... not successful, please check package name"
|
||||
done
|
||||
bashio::log.info "Installing additional apps :"
|
||||
# Install apps
|
||||
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
|
||||
bashio::log.green "... $APP"
|
||||
# Test install with both apt-get and snap
|
||||
apt-get install -yqq $APP &>/dev/null &&
|
||||
bashio::log.green "... done" ||
|
||||
bashio::log.red "... not successful, please check package name"
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user