0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +02:00

Added NEXTCLOUD_INSTALL_APPS to source entrypoint, too

This commit is contained in:
Martin Gerhardy 2020-10-05 18:50:47 +02:00
parent 0b6fbb6a52
commit ca1829aa66

View file

@ -168,6 +168,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
if [ -n "${NEXTCLOUD_INSTALL_APPS+x}" ]; then
echo "Install apps…"
echo "$NEXTCLOUD_INSTALL_APPS" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | tr " " \\n | while read APP; do
run_as "php /var/www/html/occ app:install -n $APP"
done
fi
else
echo "running web-based installer on first connect!"
fi