Skip to content

Commit

Permalink
Merge pull request #205 from eloycoto/NoLoginFix
Browse files Browse the repository at this point in the history
Systemd: Fix nologin
  • Loading branch information
masayag committed Jul 14, 2022
2 parents 8975d7d + 4158fe5 commit 0dcd844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/systemd/flotta-agent.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ExecStart=bash -c "semanage fcontext -a -e /home /var/home || true"
ExecStart=bash -c "restorecon -R -v /var/home || true"
ExecStart=bash -c "getent group flotta >/dev/null || groupadd flotta"
ExecStart=bash -c "getent passwd flotta >/dev/null || useradd -m -g flotta -s /sbin/nologin -b /var/home flotta"
ExecStartPost=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev --exclude-prefix=/var/lib/dnf
ExecStartPost=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev --exclude-prefix=/var/lib/dnf --exclude-prefix=/run/nologin
TimeoutSec=90s

[Install]
Expand Down

0 comments on commit 0dcd844

Please sign in to comment.