#!/bin/sh BUNDLE_DIR='/usr/share/webapps/authentik' cd $BUNDLE_DIR if [ "$(id -un)" != 'authentik' ]; then exec su authentik -c '"$0" "$@"' -- ./manage.py "$@" else exec ./manage.py "$@" fi