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.
docker-librenms/rootfs/usr/local/bin/startup

15 lines
311 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
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