Nextcloud-Docker/10.0/fpm/docker-entrypoint.sh
Aleksa Sarai 3efc37c756
version: move to separate versions and variants
In order to match ownCloud's Docker images, we need to provide -apache
and -fpm variant images as well as maintaining version tags for older
images.

These scripts are improved versions of the ownCloud scripts[1] because
they also automatically generate the directories with each ./update.sh,
and also generate all aliases without needing human intervention.

[1]: https://github.com/docker-library/owncloud/blob/master/generate-stackbrew-library.sh

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2017-01-13 20:33:06 +11:00

10 lines
182 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -e '/var/www/html/version.php' ]; then
tar cf - --one-file-system -C /usr/src/nextcloud . | tar xf -
chown -R www-data /var/www/html
fi
exec "$@"