summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-10-23 01:04:12 +0300
committerDevaev Maxim <[email protected]>2019-10-23 01:04:12 +0300
commita02ce60f7ed18960ad5ef9463425437de1755721 (patch)
tree6d261f464510b6b24fae8578a83b8600f56acd05 /kvmd.install
parent8e211acc13beddfe8e228c296546e15fc1deae0a (diff)
fucking systemd
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install
index 960d1fb0..d2ddda25 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -9,6 +9,9 @@ post_upgrade() {
echo "==> Ensuring KVMD users and groups ..."
systemd-sysusers /usr/lib/sysusers.d/kvmd.conf
+ # https://github.com/systemd/systemd/issues/13522
+ usermod --expiredate= kvmd >/dev/null
+
chown kvmd:kvmd /etc/kvmd/htpasswd
chown kvmd-ipmi:kvmd-ipmi /etc/kvmd/ipmipasswd
chmod 600 /etc/kvmd/*passwd