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.
portail-citoyen2/debian/portail-citoyen-manage

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 "$@"