diff options
author | Devaev Maxim <[email protected]> | 2021-05-02 04:28:38 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-02 04:28:38 +0300 |
commit | 9a659d37730c7d4015bca59387a734d520add0c4 (patch) | |
tree | 3a4ba2f7405835046970825c707a594e1d2223e4 | |
parent | 78b9f3fafd23e57a647a5a1eace3f314cc5bac20 (diff) |
usermod
-rw-r--r-- | kvmd.install | 4 |
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 |