2015-07-15 18:37:50 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
NAME=welco
|
|
|
|
MANAGE=/usr/lib/$NAME/manage.py
|
|
|
|
|
|
|
|
# load Debian default configuration
|
|
|
|
export WELCO_SETTINGS_FILE=/usr/lib/$NAME/debian_config.py
|
|
|
|
|
|
|
|
# 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
|
2020-04-11 20:05:18 +02:00
|
|
|
python3 ${MANAGE} help
|
2015-07-15 18:37:50 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-04-11 20:05:18 +02:00
|
|
|
python3 ${MANAGE} "$@"
|
2015-07-15 18:37:50 +02:00
|
|
|
|