docker-rainloop/startup

13 lines
377 B
Plaintext
Raw Normal View History

2016-05-05 09:15:35 +02:00
#!/bin/sh
# Create user and group
addgroup -g ${GID} rainloop && adduser -h /rainloop -s /bin/sh -D -G rainloop -u ${UID} rainloop
# Set permissions
chown -R rainloop:rainloop /rainloop /var/run/php-fpm.sock /var/lib/nginx /tmp
2016-05-05 18:13:46 +02:00
find /rainloop -type d -exec chmod 755 {} \;
find /rainloop -type f -exec chmod 644 {} \;
2016-05-05 09:15:35 +02:00
# RUN !
supervisord -c /etc/supervisor/supervisord.conf