Ajouter 'cachethq/rootfs/usr/bin/startup'

This commit is contained in:
Dryusdan 2017-11-02 13:28:10 +00:00
parent 6fb8424f41
commit fbdee00c1e
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/bin/sh
addgroup -g ${GID} web && adduser -H -s /bin/sh -D -G web -u ${UID} web
mkdir -p /nginx /php
php artisan app:install
chown -R web:web /nginx /php /etc/s6.d
chmod +x /etc/s6.d/*/run /etc/s6.d/.s6-svscan/finish
if [ '$@' == '' ]; then
exec su-exec web:web /bin/s6-svscan /etc/s6.d
else
exec su-exec web:web "$@"
fi