13 lines
196 B
Bash
13 lines
196 B
Bash
|
|
||
|
#!/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
|