提交Git

This commit is contained in:
Peijun Zhao
2026-05-10 12:59:00 +08:00
commit b0aaea9fb3
2544 changed files with 545276 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# Sudo configuration for ServerGuard to control Minecraft service
# Add this to /etc/sudoers.d/serverguard
# Allow serverguard to restart Minecraft service without password
%sudo ALL=(ALL) NOPASSWD: /bin/systemctl restart minecraft
%sudo ALL=(ALL) NOPASSWD: /bin/systemctl stop minecraft
%sudo ALL=(ALL) NOPASSWD: /bin/systemctl start minecraft
%sudo ALL=(ALL) NOPASSWD: /bin/systemctl status minecraft
# Allow serverguard to control rcon-cli commands
%sudo ALL=(minecraft) NOPASSWD: /usr/bin/rcon-cli *