Add cron.sh
This commit is contained in:
parent
74c68d908b
commit
3747025dd6
@ -88,7 +88,7 @@ RUN set -ex; \
|
|||||||
mkdir -p /usr/src/nextcloud/custom_apps; \
|
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||||
chmod +x /usr/src/nextcloud/occ
|
chmod +x /usr/src/nextcloud/occ
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /entrypoint.sh
|
COPY *.sh /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
6
11.0/apache/cron.sh
Executable file
6
11.0/apache/cron.sh
Executable file
@ -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; \
|
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||||
chmod +x /usr/src/nextcloud/occ
|
chmod +x /usr/src/nextcloud/occ
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /entrypoint.sh
|
COPY *.sh /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
6
11.0/fpm/cron.sh
Executable file
6
11.0/fpm/cron.sh
Executable file
@ -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; \
|
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||||
chmod +x /usr/src/nextcloud/occ
|
chmod +x /usr/src/nextcloud/occ
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /entrypoint.sh
|
COPY *.sh /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
6
12.0/apache/cron.sh
Executable file
6
12.0/apache/cron.sh
Executable file
@ -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; \
|
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||||
chmod +x /usr/src/nextcloud/occ
|
chmod +x /usr/src/nextcloud/occ
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /entrypoint.sh
|
COPY *.sh /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
6
12.0/fpm/cron.sh
Executable file
6
12.0/fpm/cron.sh
Executable file
@ -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; \
|
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||||
chmod +x /usr/src/nextcloud/occ
|
chmod +x /usr/src/nextcloud/occ
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /entrypoint.sh
|
COPY *.sh /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
6
docker-cron.sh
Executable file
6
docker-cron.sh
Executable file
@ -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;
|
s/%%VARIANT_EXTRAS%%/'"${extras[$variant]}"'/g;
|
||||||
' "$version/$variant/Dockerfile"
|
' "$version/$variant/Dockerfile"
|
||||||
|
|
||||||
# Copy the docker-entrypoint.
|
# Copy the shell scripts
|
||||||
cp docker-entrypoint.sh "$version/$variant/docker-entrypoint.sh"
|
for name in entrypoint cron; do
|
||||||
|
cp "docker-$name.sh" "$version/$variant/$name.sh"
|
||||||
|
done
|
||||||
|
|
||||||
# Copy the config directory
|
# Copy the config directory
|
||||||
cp -rT .config "$version/$variant/config"
|
cp -rT .config "$version/$variant/config"
|
||||||
|
Loading…
Reference in New Issue
Block a user