Fix cron config

This commit is contained in:
Tilo Spannagel 2018-01-30 17:49:10 +01:00
parent 022575326b
commit 423e017e3b
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
10 changed files with 10 additions and 15 deletions

View File

@ -8,7 +8,8 @@ RUN set -ex; \
bzip2 \ bzip2 \
busybox-static \ busybox-static \
; \ ; \
echo '*/15 * * * * www-data php -f /var/www/html/cron.php' > /etc/crontab; \ mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data; \
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
\ \

View File

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

View File

@ -8,7 +8,8 @@ RUN set -ex; \
bzip2 \ bzip2 \
busybox-static \ busybox-static \
; \ ; \
echo '*/15 * * * * www-data php -f /var/www/html/cron.php' > /etc/crontab; \ mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data; \
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
\ \

View File

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

View File

@ -8,7 +8,8 @@ RUN set -ex; \
bzip2 \ bzip2 \
busybox-static \ busybox-static \
; \ ; \
echo '*/15 * * * * www-data php -f /var/www/html/cron.php' > /etc/crontab; \ mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data; \
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
\ \

View File

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

View File

@ -8,7 +8,8 @@ RUN set -ex; \
bzip2 \ bzip2 \
busybox-static \ busybox-static \
; \ ; \
echo '*/15 * * * * www-data php -f /var/www/html/cron.php' > /etc/crontab; \ mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data; \
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
\ \

View File

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

View File

@ -8,7 +8,8 @@ RUN set -ex; \
bzip2 \ bzip2 \
busybox-static \ busybox-static \
; \ ; \
echo '*/15 * * * * www-data php -f /var/www/html/cron.php' > /etc/crontab; \ mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data; \
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
\ \

View File

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