0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 08:14:46 +02:00

Separate image tag directories

This commit is contained in:
Blagovest Petrov 2016-10-14 18:09:15 +03:00
parent 8fb6f75402
commit 975d7d8dbf
4 changed files with 71 additions and 0 deletions

13
php5.6/fpm/docker-entrypoint.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/ash
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
if [ -n "$TZ"]; then
cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
fi
exec "$@"