This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2014-04-01 15:59:05 +02:00
|
|
|
#!/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
|
|
|
|
|
2014-04-01 16:28:19 +02:00
|
|
|
if [ -f /etc/portail-citoyen/portail-citoyen2.conf ]; then
|
|
|
|
. /etc/portail-citoyen/portail-citoyen2.conf
|
2014-04-01 15:59:05 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
/usr/lib/portail-citoyen/manage.py "$@"
|