Skip to content

Commit

Permalink
usermod
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed May 2, 2021
1 parent 78b9f3f commit 9a659d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kvmd.install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a659d3

Please sign in to comment.