root / debian / u-auth-manage @ 940f714d
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
NAME=u-auth |
4 |
MANAGE=/usr/lib/$NAME/manage.py |
5 |
|
6 |
# load Debian default configuration
|
7 |
export UAUTH_SETTINGS_FILE=/usr/lib/$NAME/debian_config.py |
8 |
|
9 |
# check user
|
10 |
if test x$1 = x"--forceuser" |
11 |
then
|
12 |
shift |
13 |
elif test $(id -un) != "$NAME" |
14 |
then
|
15 |
echo "error: must use $0 with user ${NAME}" |
16 |
exit 1
|
17 |
fi
|
18 |
|
19 |
if test $# -eq 0 |
20 |
then
|
21 |
python ${MANAGE} help |
22 |
exit 1
|
23 |
fi
|
24 |
|
25 |
python ${MANAGE} "$@" |