Update 80-configuration.sh

This commit is contained in:
Alexandre
2023-09-03 08:50:14 +02:00
committed by GitHub
parent a470773db3
commit 36309a8b33

View File

@@ -19,11 +19,11 @@ if bashio::config.has_value 'additional_apps'; then
NEWAPPS=$(bashio::config 'additional_apps')
for packagestoinstall in ${NEWAPPS//,/ }; do
bashio::log.green "... $APP"
if [ "$PACKMANAGER" = "apk" ]; then
if command -v "apk" &>/dev/null; then
apk add --no-cache "$packagestoinstall" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found")
elif [ "$PACKMANAGER" = "apt" ]; then
elif command -v "apt" &>/dev/null; then
apt-get install -yqq --no-install-recommends "$packagestoinstall" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found")
elif [ "$PACKMANAGER" = "pacman" ]; then
elif command -v "pacman" &>/dev/null; then
pacman --noconfirm -S "$packagestoinstall" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found")
fi
done