13 lines
442 B
Bash
Raw Normal View History

#!/bin/sh
2016-08-16 20:02:21 +03:00
if [ ! -f /config/config.php ]; then
echo -e "<?php\n\$CONFIG = array (\n 'datadirectory' => '/data',\n);" > /config/config.php
fi
mkdir /tmp/fastcgi /tmp/client_body
2016-09-16 17:08:06 +02:00
chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log/nginx /var/log/php7 /var/lib/nginx /tmp /etc/s6.d
2016-08-16 19:23:31 +03:00
ln -s /config/config.php /nextcloud/config/config.php
ln -s /apps2 /nextcloud
2016-09-16 17:08:06 +02:00
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d