13 lines
392 B
Bash
Raw Normal View History

2016-06-16 12:54:04 +02:00
#!/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
2016-09-16 22:15:23 +02:00
chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /tmp /etc/s6.d
2016-08-16 19:23:31 +03:00
ln -s /config/config.php /nextcloud/config/config.php
2016-06-16 12:54:04 +02:00
ln -s /apps2 /nextcloud
2016-09-16 22:08:53 +02:00
crond
2016-09-16 17:08:06 +02:00
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d