Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 20/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 20/apache/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
3 changes: 2 additions & 1 deletion 20/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN set -ex; \
; \
\
rm /var/spool/cron/crontabs/root; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 20/fpm-alpine/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
4 changes: 2 additions & 2 deletions 20/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 20/fpm/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
4 changes: 2 additions & 2 deletions 21/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 21/apache/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
3 changes: 2 additions & 1 deletion 21/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN set -ex; \
; \
\
rm /var/spool/cron/crontabs/root; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 21/fpm-alpine/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
4 changes: 2 additions & 2 deletions 21/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 21/fpm/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
4 changes: 2 additions & 2 deletions 22/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 22/apache/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
3 changes: 2 additions & 1 deletion 22/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN set -ex; \
; \
\
rm /var/spool/cron/crontabs/root; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 22/fpm-alpine/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
4 changes: 2 additions & 2 deletions 22/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion 22/fpm/cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep 5m;
done
3 changes: 2 additions & 1 deletion Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN set -ex; \
; \
\
rm /var/spool/cron/crontabs/root; \
echo '*/%%CRONTAB_INT%% * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/%%CRONTAB_INT%% * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
touch /usr/local/etc/php/conf.d/redis-session.ini; \
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;

# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
Expand Down
5 changes: 4 additions & 1 deletion docker-cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
set -eu

exec busybox crond -f -l 0 -L /dev/stdout
while [ 1 ]; do
(php -f /var/www/html/cron.php &);
sleep %%CRONTAB_INT%%m;
done
5 changes: 4 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ function create_variant() {
s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/g;
s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g;
s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g;
s/%%CRONTAB_INT%%/'"$crontabInt"'/g;
' "$dir/Dockerfile"

case "$phpVersion" in
Expand All @@ -132,6 +131,10 @@ function create_variant() {
for name in entrypoint cron; do
cp "docker-$name.sh" "$dir/$name.sh"
done
# Replace the variable.
sed -ri -e '
s/%%CRONTAB_INT%%/'"$crontabInt"'/g;
' "$dir/cron.sh"

# Copy the upgrade.exclude
cp upgrade.exclude "$dir/"
Expand Down