Create systemd unit to create rke user

This commit is contained in:
Gerald Pinder
2025-05-11 13:22:52 -04:00
parent ad73e87daa
commit f25c8be0f9
4 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Create 'rke' user and add to docker group
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/libexec/rke2/create-rke-user.sh
RemainAfterExit=yes
# Disable and mask the service after successful execution
ExecStartPost=-/bin/systemctl disable --now create-rke-user.service
ExecStartPost=-/bin/systemctl mask --now create-rke-user.service
[Install]
WantedBy=multi-user.target