chrono/debian/chrono-manage

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

27 lines
397 B
Plaintext
Raw Normal View History

2016-05-04 16:03:22 +02:00
#!/bin/sh
NAME=chrono
MANAGE=/usr/lib/$NAME/manage.py
# load Debian default configuration
2016-05-04 16:23:40 +02:00
export CHRONO_SETTINGS_FILE=/usr/lib/$NAME/debian_config.py
2016-05-04 16:03:22 +02: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
python3 ${MANAGE} help
2016-05-04 16:03:22 +02:00
exit 1
fi
python3 ${MANAGE} "$@"
2016-05-04 16:03:22 +02:00