diff options
author | Micah Anderson <micah@riseup.net> | 2015-11-24 15:46:40 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2015-11-24 15:55:44 -0500 |
commit | 7723faea45549999f1a64b6113289c2d7fbe8695 (patch) | |
tree | f1eac16d1a05afa4303e7a5dab0087e3b46385fb | |
parent | 6fd862abc9e8711bd4aa117697c5df85cf6f560a (diff) |
Change initscript to run leap-mx as an unpriviledged user (#7634)
-rw-r--r-- | pkg/leap-mx.init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/leap-mx.init b/pkg/leap-mx.init index 0c66bc5..3878bce 100644 --- a/pkg/leap-mx.init +++ b/pkg/leap-mx.init @@ -14,6 +14,8 @@ PIDFILE=/var/run/leap_mx.pid RUNDIR=/var/lib/leap_mx/ FILE=/usr/share/app/leap_mx.tac TWISTD_PATH=/usr/bin/twistd +USER=leap-mx +GROUP=leap-mx [ -r /etc/default/leap_mx ] && . /etc/default/leap_mx @@ -32,7 +34,9 @@ case "$1" in --rundir=$RUNDIR \ --python=$FILE \ --syslog \ - --prefix=leap-mx + --prefix=leap-mx \ + --uid=$USER \ + --gid=$GROUP echo "." ;; |