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