19 lines
448 B
Bash
Executable File
19 lines
448 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$(whoami)" != "portail-citoyen" ]; then
|
|
if which sudo; then
|
|
if sudo -v -u portail-citoyen; then
|
|
sudo -u portail-citoyen portail-citoyen-manage "$@"
|
|
exit $?
|
|
fi
|
|
echo "You must run this script with portail-citoyen user"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
if [ -f /etc/portail-citoyen/portail-citoyen2.conf ]; then
|
|
. /etc/portail-citoyen/portail-citoyen2.conf
|
|
fi
|
|
|
|
/usr/lib/portail-citoyen/manage.py "$@"
|