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

Images tree reorganized as PR #21

This commit is contained in:
Blagovest Petrov 2017-01-06 15:02:53 +02:00
parent e44e96a9c7
commit 5998fbe4cc
4 changed files with 72 additions and 0 deletions

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 "$@"