scrutiny/debian/scrutiny-manage

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

26 lines
400 B
Plaintext
Raw Permalink Normal View History

2015-11-18 15:05:34 +01:00
#!/bin/sh
NAME=scrutiny
MANAGE=/usr/lib/$NAME/manage.py
# load Debian default configuration
export SCRUTINY_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-01-19 18:01:41 +01:00
python3 ${MANAGE} help
2015-11-18 15:05:34 +01:00
exit 1
fi
2020-01-19 18:01:41 +01:00
python3 ${MANAGE} "$@"