mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-27 11:25:41 +00:00
boinc
boring-nginx
cowrie
ghost
isso
lutim
lychee
nextcloud
10.0
9.0
Dockerfile
apcu.ini
cron
nginx.conf
opcache.ini
php-fpm.conf
run.sh
supervisord.conf
daily
README.md
nginx
nodejs
piwik
privatebin
rainloop
rutorrent
searx
subsonic
tor
LICENSE
16 lines
572 B
Bash
16 lines
572 B
Bash
#!/bin/sh
|
|
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
|
|
|
# Set default data directory
|
|
if [ ! -f /config/config.php ]; then
|
|
echo -e "<?php\n\$CONFIG = array (\n 'datadirectory' => '/data',\n);" > /config/config.php
|
|
fi
|
|
|
|
touch /var/run/php-fpm.sock
|
|
mkdir /tmp/fastcgi /tmp/client_body
|
|
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
|
ln -s /config/config.php /nextcloud/config/config.php
|
|
ln -s /apps2 /nextcloud
|
|
|
|
supervisord -c /etc/supervisor/supervisord.conf
|