Mercurial > louis > pkgbuild-lightsd
annotate lightsd.install @ 25:0778fe7cee6c default tip
New upstream release 1.2.1
author | Buildbot <buildbot@kalessin.fr> |
---|---|
date | Mon, 13 Feb 2017 02:51:03 +0000 |
parents | 3e501f670b95 |
children |
rev | line source |
---|---|
4 | 1 post_install() { |
2 getent group lightsd >/dev/null || groupadd -r lightsd | |
3 getent passwd lightsd >/dev/null || useradd -r -d / -g lightsd lightsd | |
4 | |
5 cat << 'EOF' | |
6 | |
7 lightsd runs under the `lightsd' user and group by default; add yourself to | |
8 this group to be able to open lightsd's socket and pipe under /run/lightsd: | |
9 | |
10 gpasswd -a $USER lightsd | |
11 | |
12 Re-open your current desktop or ssh session for the change to take effect. | |
13 Then use systemctl to start lightsd; you can start playing with lightsd with: | |
14 | |
24
3e501f670b95
New upstream release 1.2.1-rc.6
Buildbot <buildbot@kalessin.fr>
parents:
4
diff
changeset
|
15 $(lightsd --prefix)/share/lightsd/examples/lightsc.py |
4 | 16 |
17 EOF | |
18 } | |
19 | |
20 post_remove() { | |
21 getent passwd lightsd >/dev/null && userdel lightsd | |
22 } |