#!/bin/sh USE_HOST=cloud.alemor.org DATADIR=$HOME/vol/nextcloud/data mkdir -p $DATADIR/etc \ $DATADIR/ncconfig \ $HOME/vol/nextcloud/files cp data/ncconfig/* $DATADIR/ncconfig/ sed -e "s/example.domain.com/$USE_HOST/" \ data/ncconfig/host.config.php \ > $DATADIR/ncconfig/host.config.php mkdir -p assets/nextcloud cd assets/nextcloud if [ -e latest.zip ]; then echo Available Nextcloud files: ls -lF else wget --progress=dot:giga https://download.nextcloud.com/server/releases/latest.zip fi