Just mask the service
This commit is contained in:
@@ -6,8 +6,7 @@ After=network.target
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/rke2/create_rke_user.sh
|
||||
|
||||
# Disable and mask the service after successful execution
|
||||
ExecStartPost=-/bin/systemctl disable create_rke_user.service
|
||||
# Mask the service after successful execution
|
||||
ExecStartPost=-/bin/systemctl mask create_rke_user.service
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user