This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Dockerfiles/unmaintened/phproject/rootfs/usr/local/bin/startup

17 lines
350 B
Bash

#!/bin/sh
addgroup -g ${GID} web && adduser -H -s /bin/sh -D -G web -u ${UID} web
mkdir -p /nginx /php
chown -R web:web /nginx /php /etc/s6.d /phproject
sed -i -e 's/<PUBLIC_URL>/'$PUBLIC_URL'/g' /nginx/sites-enabled/phproject.conf
if [ '$@' == '' ]; then
exec su-exec web:web /bin/s6-svscan /etc/s6.d
else
exec su-exec web:web "$@"
fi