2014-10-02 13:49:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-10-02 16:31:47 +02:00
|
|
|
NAME=passerelle
|
2015-03-11 19:39:06 +01:00
|
|
|
MANAGE="/usr/lib/passerelle/manage.py"
|
|
|
|
|
|
|
|
# load Debian default configuration
|
|
|
|
export PASSERELLE_SETTINGS_FILE=/usr/lib/$NAME/debian_config.py
|
2014-10-02 16:31:47 +02:00
|
|
|
|
2014-10-06 16:41:01 +02:00
|
|
|
# check user
|
|
|
|
if test x$1 = x"--forceuser"
|
2014-10-02 16:31:47 +02:00
|
|
|
then
|
2014-10-06 16:41:01 +02:00
|
|
|
shift
|
|
|
|
elif test $(id -un) != "$NAME"
|
|
|
|
then
|
|
|
|
echo "error: must use $0 with user ${NAME}"
|
|
|
|
exit 1
|
2014-10-02 16:31:47 +02:00
|
|
|
fi
|
|
|
|
|
2014-10-06 16:41:01 +02:00
|
|
|
if test $# -eq 0
|
2014-10-02 16:31:47 +02:00
|
|
|
then
|
2020-06-12 12:29:17 +02:00
|
|
|
python3 ${MANAGE} help
|
2014-10-06 16:41:01 +02:00
|
|
|
exit 1
|
2014-10-02 16:31:47 +02:00
|
|
|
fi
|
|
|
|
|
2020-06-12 12:29:17 +02:00
|
|
|
python3 ${MANAGE} "$@"
|