11 lines
195 B
Bash
11 lines
195 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
|