Add cron.sh
This commit is contained in:
Родитель
74c68d908b
Коммит
3747025dd6
|
@ -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"]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p /var/spool/cron/crontabs
|
||||
|
||||
exec busybox crond -f -l 0 -L /dev/stdout
|
|
@ -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"]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p /var/spool/cron/crontabs
|
||||
|
||||
exec busybox crond -f -l 0 -L /dev/stdout
|
|
@ -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"]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p /var/spool/cron/crontabs
|
||||
|
||||
exec busybox crond -f -l 0 -L /dev/stdout
|
|
@ -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"]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p /var/spool/cron/crontabs
|
||||
|
||||
exec busybox crond -f -l 0 -L /dev/stdout
|
|
@ -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"]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p /var/spool/cron/crontabs
|
||||
|
||||
exec busybox crond -f -l 0 -L /dev/stdout
|
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче