18 lines
375 B
Bash
18 lines
375 B
Bash
#!/bin/ash
|
|
# Runs nextcloud cron jobs only. Used as a dedicated k8s cron pod so cron
|
|
# runs exactly once regardless of how many web replicas are running.
|
|
|
|
set -eu
|
|
|
|
. /usr/local/bin/common.sh
|
|
|
|
write_php_ini
|
|
ensure_data_dirs
|
|
|
|
while [ ! -f "/data/config/config.php" ]; do
|
|
echo "Waiting for nextcloud setup job to finish installing..."
|
|
sleep 2
|
|
done
|
|
|
|
protect_secrets
|
|
run_cron
|