passerelle/debian/passerelle-manage

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
411 B
Plaintext
Raw Normal View History

#!/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
# check user
if test x$1 = x"--forceuser"
2014-10-02 16:31:47 +02:00
then
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
if test $# -eq 0
2014-10-02 16:31:47 +02:00
then
2020-06-12 12:29:17 +02:00
python3 ${MANAGE} help
exit 1
2014-10-02 16:31:47 +02:00
fi
2020-06-12 12:29:17 +02:00
python3 ${MANAGE} "$@"