summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-02 04:28:38 +0300
committerDevaev Maxim <[email protected]>2021-05-02 04:28:38 +0300
commit9a659d37730c7d4015bca59387a734d520add0c4 (patch)
tree3a4ba2f7405835046970825c707a594e1d2223e4 /kvmd.install
parent78b9f3fafd23e57a647a5a1eace3f314cc5bac20 (diff)
usermod
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd.install b/kvmd.install
index 75e099c9..e561b685 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -7,7 +7,9 @@ post_upgrade() {
systemd-sysusers /usr/lib/sysusers.d/kvmd.conf
# https://github.com/systemd/systemd/issues/13522
- usermod --expiredate= kvmd >/dev/null
+ for user in `grep '^u ' /usr/lib/sysusers.d/kvmd.conf | awk '{print $2}'`; do
+ usermod --expiredate= $user >/dev/null
+ done
chown kvmd:kvmd /etc/kvmd/htpasswd
chown kvmd-ipmi:kvmd-ipmi /etc/kvmd/ipmipasswd