Add cron.sh

This commit is contained in:
Tilo Spannagel 2018-01-30 13:11:04 +01:00
parent 74c68d908b
commit 3747025dd6
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
15 changed files with 39 additions and 7 deletions

View File

@ -88,7 +88,7 @@ RUN set -ex; \
mkdir -p /usr/src/nextcloud/custom_apps; \
chmod +x /usr/src/nextcloud/occ
COPY docker-entrypoint.sh /entrypoint.sh
COPY *.sh /
COPY config/* /usr/src/nextcloud/config/
ENTRYPOINT ["/entrypoint.sh"]

6
11.0/apache/cron.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
mkdir -p /var/spool/cron/crontabs
exec busybox crond -f -l 0 -L /dev/stdout

View File

@ -87,7 +87,7 @@ RUN set -ex; \
mkdir -p /usr/src/nextcloud/custom_apps; \
chmod +x /usr/src/nextcloud/occ
COPY docker-entrypoint.sh /entrypoint.sh
COPY *.sh /
COPY config/* /usr/src/nextcloud/config/
ENTRYPOINT ["/entrypoint.sh"]

6
11.0/fpm/cron.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
mkdir -p /var/spool/cron/crontabs
exec busybox crond -f -l 0 -L /dev/stdout

View File

@ -88,7 +88,7 @@ RUN set -ex; \
mkdir -p /usr/src/nextcloud/custom_apps; \
chmod +x /usr/src/nextcloud/occ
COPY docker-entrypoint.sh /entrypoint.sh
COPY *.sh /
COPY config/* /usr/src/nextcloud/config/
ENTRYPOINT ["/entrypoint.sh"]

6
12.0/apache/cron.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
mkdir -p /var/spool/cron/crontabs
exec busybox crond -f -l 0 -L /dev/stdout

View File

@ -87,7 +87,7 @@ RUN set -ex; \
mkdir -p /usr/src/nextcloud/custom_apps; \
chmod +x /usr/src/nextcloud/occ
COPY docker-entrypoint.sh /entrypoint.sh
COPY *.sh /
COPY config/* /usr/src/nextcloud/config/
ENTRYPOINT ["/entrypoint.sh"]

6
12.0/fpm/cron.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
mkdir -p /var/spool/cron/crontabs
exec busybox crond -f -l 0 -L /dev/stdout

View File

@ -87,7 +87,7 @@ RUN set -ex; \
mkdir -p /usr/src/nextcloud/custom_apps; \
chmod +x /usr/src/nextcloud/occ
COPY docker-entrypoint.sh /entrypoint.sh
COPY *.sh /
COPY config/* /usr/src/nextcloud/config/
ENTRYPOINT ["/entrypoint.sh"]

6
docker-cron.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
mkdir -p /var/spool/cron/crontabs
exec busybox crond -f -l 0 -L /dev/stdout

View File

@ -51,8 +51,10 @@ for latest in "${latests[@]}"; do
s/%%VARIANT_EXTRAS%%/'"${extras[$variant]}"'/g;
' "$version/$variant/Dockerfile"
# Copy the docker-entrypoint.
cp docker-entrypoint.sh "$version/$variant/docker-entrypoint.sh"
# Copy the shell scripts
for name in entrypoint cron; do
cp "docker-$name.sh" "$version/$variant/$name.sh"
done
# Copy the config directory
cp -rT .config "$version/$variant/config"