23 lines
345 B
Bash
Executable File
23 lines
345 B
Bash
Executable File
#!/bin/sh
|
|
|
|
NAME=mandaye-meyzieu
|
|
MANAGER="/usr/lib/$NAME/manager.py --config=/etc/$NAME/config.ini"
|
|
|
|
# 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 ${MANAGER} --help
|
|
exit 1
|
|
fi
|
|
|
|
python ${MANAGER} "$@"
|