ayaports/user/authentik/authentik-manage.sh

13 lines
196 B
Bash
Raw Normal View History

2023-06-26 17:07:17 +00:00
#!/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