27 lines
393 B
Plaintext
27 lines
393 B
Plaintext
|
#!/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
|
||
|
python ${MANAGE} help
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
python ${MANAGE} "$@"
|
||
|
|