diff --git a/debian/control b/debian/control index 3baa048..57bd630 100644 --- a/debian/control +++ b/debian/control @@ -37,6 +37,7 @@ Depends: ${misc:Depends}, adduser, python-django-south (>= 0.8.4), python-psycopg2, gunicorn, dbconfig-common, + sudo, debconf | debconf-2.0, ucf Recommends: postgresql-client Suggests: nginx, postgresql, authentic2 diff --git a/debian/portail-citoyen2.init b/debian/portail-citoyen2.init index c8fa54e..eea9055 100644 --- a/debian/portail-citoyen2.init +++ b/debian/portail-citoyen2.init @@ -180,6 +180,14 @@ case "$1" in ;; esac ;; + manage) + shift + if [ $(id -un) != "$USER" ]; then + sudo -H -u $USER /usr/bin/portail-citoyen-manage "$@" + else + /usr/bin/portail-citoyen-manage "$@" + fi + ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3