diff options
author | Devaev Maxim <[email protected]> | 2019-05-09 20:52:15 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-05-09 20:52:15 +0300 |
commit | def5346b4bb0572f3d35df23f988e79a925dfcd8 (patch) | |
tree | 40e69a45cacc3f4678df4a22c9020295f24bc8bf /kvmd.install | |
parent | a972e35f7af8ade0e827a30a7ff84404c0e1a2d4 (diff) |
using unix sockets
Diffstat (limited to 'kvmd.install')
-rw-r--r-- | kvmd.install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd.install b/kvmd.install index 647184d4..3e504d48 100644 --- a/kvmd.install +++ b/kvmd.install @@ -6,14 +6,16 @@ post_install() { } post_upgrade() { - echo "==> Configuring KVMD user and groups ..." + echo "==> Configuring KVMD users and groups ..." id kvmd &>/dev/null || useradd -r -c "The main Pi-KVM daemon" -s /sbin/nologin kvmd - for group in gpio uucp systemd-journal; do (groupmems -l -g "$group" | grep kvmd >/dev/null) || groupmems -g "$group" -a kvmd done + id kvmd-nginx &>/dev/null || useradd -r -c "Pi-KVM Nginx Server" -s /sbin/nologin kvmd-nginx + (groupmems -l -g kvmd | grep kvmd-nginx >/dev/null) || groupmems -g kvmd -a kvmd-nginx + chown root:kvmd \ /usr/share/kvmd/configs.default/kvmd/*passwd \ /etc/kvmd/*passwd |