owncloud: move base to alpine

This commit is contained in:
Wonderfall
2016-04-30 12:57:18 +02:00
parent 964feb5cb5
commit 8de10a4c17
8 changed files with 65 additions and 57 deletions

View File

@ -1,8 +1,5 @@
#!/bin/bash
deluser www-data
addgroup --gid $GROUPID www-data
adduser --system --no-create-home --ingroup www-data --uid $USERID www-data
crontab -u www-data /etc/cron.conf
#!/bin/sh
addgroup -g ${GID} owncloud && adduser -h /owncloud -s /bin/sh -D -G owncloud -u ${UID} owncloud
if [ -f /owncloud/config/config.php ] && [ ! -f /config/config.php ]; then
cp /owncloud/config/config.php /config/config.php
@ -14,7 +11,8 @@ elif [ -f /config/config.php ]; then
cp /config/config.php /owncloud/config/config.php
fi
chown -R www-data:www-data /owncloud /data /config /apps2
touch /var/run/php-fpm.sock
chown -R owncloud:owncloud /owncloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
ln -s /apps2 /owncloud
supervisord -c /etc/supervisord.conf
supervisord -c /etc/supervisor/supervisord.conf