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/Olympe/api/rootfs/usr/local/bin/startup

17 lines
294 B
Bash
Executable File

#!/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 /api
if [ '$@' == '' ]; then
echo "here"
exec su-exec web:web /bin/s6-svscan /etc/s6.d
else
echo "la"
exec su-exec web:web "$@"
fi