2017-01-02 17:48:23 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
NAME=zoo
|
|
|
|
MANAGE="/usr/lib/zoo/manage.py"
|
|
|
|
|
|
|
|
# load Debian default configuration
|
2019-02-22 14:24:37 +01:00
|
|
|
export ZOO_SETTINGS_FILE=/usr/lib/$NAME/debian_config.py
|
2017-01-02 17:48:23 +01:00
|
|
|
|
|
|
|
# check user
|
|
|
|
if test x$1 = x"--forceuser"
|
|
|
|
then
|
|
|
|
shift
|
|
|
|
elif test $(id -un) != "$NAME"
|
|
|
|
then
|
|
|
|
echo "error: must use $0 with user ${NAME}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $# -eq 0
|
|
|
|
then
|
2023-03-23 11:19:36 +01:00
|
|
|
python3 ${MANAGE} help
|
2017-01-02 17:48:23 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-02-28 14:18:28 +01:00
|
|
|
python3 ${MANAGE} "$@"
|