mirror of
https://github.com/casjaysdevdocker/nextcloud
synced 2025-01-19 00:34:24 -05:00
233e048552
bin/entrypoint-nextcloud.sh bin/.gitkeep bin/healthcheck bin/occ config/cont-init.d/00-fix-logs.sh config/cont-init.d/01-fix-uidgid.sh config/cont-init.d/02-fix-perms.sh config/cont-init.d/03-config.sh config/cont-init.d/04-svc-main.sh config/cont-init.d/05-svc-cron.sh config/cont-init.d/06-svc-previewgen.sh config/cont-init.d/07-svc-news-updater.sh config/.gitkeep config/php/conf.d/smbclient.ini config/tpls/bootstrap.php config/tpls/etc/nginx/nginx.conf config/tpls/etc/php/conf.d/apcu.ini config/tpls/etc/php/conf.d/opcache.ini config/tpls/etc/php/conf.d/override.ini config/tpls/etc/php/php-fpm.d/www.conf data/.gitkeep Dockerfile .env.scripts .gitattributes .gitignore rootfs/.gitkeep rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/bin/.gitkeep rootfs/usr/local/bin/next-cloud rootfs/usr/local/bin/occ rootfs/usr/local/bin/pkmgr rootfs/usr/local/bin/start-nextcloud.sh rootfs/usr/local/etc/ rootfs/usr/local/share/template-files/config/env/
22 lines
1.2 KiB
Bash
22 lines
1.2 KiB
Bash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# File locations
|
|
ENTRYPOINT_PID_FILE="${ENTRYPOINT_PID_FILE:-/run/init.d/entrypoint.pid}"
|
|
ENTRYPOINT_INIT_FILE="${ENTRYPOINT_INIT_FILE:-/config/.entrypoint.done}"
|
|
ENTRYPOINT_DATA_INIT_FILE="${ENTRYPOINT_DATA_INIT_FILE:-/data/.docker_has_run}"
|
|
ENTRYPOINT_CONFIG_INIT_FILE="${ENTRYPOINT_CONFIG_INIT_FILE:-/config/.docker_has_run}"
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Startup variables
|
|
INIT_DATE="${INIT_DATE:-$(date)}"
|
|
START_SERVICES="${START_SERVICES:-yes}"
|
|
ENTRYPOINT_MESSAGE="${ENTRYPOINT_MESSAGE:-yes}"
|
|
ENTRYPOINT_FIRST_RUN="${ENTRYPOINT_FIRST_RUN:-yes}"
|
|
DATA_DIR_INITIALIZED="${DATA_DIR_INITIALIZED:-false}"
|
|
CONFIG_DIR_INITIALIZED="${CONFIG_DIR_INITIALIZED:-false}"
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Check if this is a new container
|
|
[ -f "$ENTRYPOINT_PID_FILE" ] && START_SERVICES="no"
|
|
[ -f "$ENTRYPOINT_CONFIG_INIT_FILE" ] && ENTRYPOINT_FIRST_RUN="no"
|
|
[ -f "$ENTRYPOINT_DATA_INIT_FILE" ] && DATA_DIR_INITIALIZED="true"
|
|
[ -f "$ENTRYPOINT_CONFIG_INIT_FILE" ] && CONFIG_DIR_INITIALIZED="true"
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|