build files for making podman containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
515 B

#!/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