nextcloud/setup.sh

16 lines
300 B
Bash

#!/bin/ash
# Runs nextcloud install/upgrade only. Used as the k8s setup Job so the
# StatefulSet pods never race each other to install/upgrade on startup.
set -eu
. /usr/local/bin/common.sh
write_php_ini
ensure_data_dirs
install_nextcloud
upgrade_nextcloud
protect_secrets
echo "Setup complete"