nextcloud: replace crond with script

This commit is contained in:
Wonderfall
2016-09-23 00:50:39 +02:00
parent d627b800af
commit 8c724b51da
12 changed files with 48 additions and 39 deletions

View File

@ -6,11 +6,12 @@ fi
sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/php7/php-fpm.conf \
-e "s/<APC_SHM_SIZE>/$APC_SHM_SIZE/g" /etc/php7/conf.d/apcu.ini \
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /tmp /etc/s6.d
ln -s /config/config.php /nextcloud/config/config.php
ln -s /apps2 /nextcloud
crond
ln -s /config/config.php /nextcloud/config/config.php &>/dev/null
ln -s /apps2 /nextcloud &>/dev/null
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d