nextcloud/serve.sh

19 lines
389 B
Bash

#!/bin/ash
# Starts the nextcloud webserver only. Install/upgrade is handled by a
# separate k8s setup Job that runs before this pod starts.
set -eu
. /usr/local/bin/common.sh
write_php_ini
ensure_data_dirs
run_sidecar_if_requested
while [ ! -f "/data/config/config.php" ]; do
echo "Waiting for nextcloud setup job to finish installing..."
sleep 2
done
protect_secrets
run_server