Update 99-add_packages.sh

This commit is contained in:
Alexandre
2022-08-01 15:31:36 +02:00
committed by GitHub
parent a193f80a13
commit eb1d60e797

View File

@@ -1,5 +1,6 @@
#!/bin/bash
# Install specific packages
if [ ! -d /data/config/www/nextcloud/apps/pdfannotate ]; then
CURRENT="$PWD"
cd /data/config/www/nextcloud/apps || exit
@@ -8,3 +9,15 @@ if [ ! -d /data/config/www/nextcloud/apps/pdfannotate ]; then
apk add --no-cache ghostscript >/dev/null
echo "Nextcloud annotate app added to Nextcloud app store"
fi
# Install specific apps
if bashio::config.has_value 'additional_apps'; then
bashio::log.info "Installing additional apps :"
# hadolint ignore=SC2005
NEWAPPS=$(bashio::config 'additional_apps')
for APP in ${NEWAPPS//,/ }; do
bashio::log.green "... $APP"
# shellcheck disable=SC2015
apk add --no-cache "$APP" >/dev/null || bashio::log.red "... not successful, please check package name"
done
fi