Remove all use of sudoers file (#3477)

This commit is contained in:
Geoff Bourne
2025-06-01 10:04:37 -05:00
committed by GitHub
parent 3616847e8e
commit 85648d5916
5 changed files with 6 additions and 11 deletions

View File

@@ -6,8 +6,5 @@ if isTrue "${DEBUG_AUTOSTOP}"; then
fi
logAutostopAction "Stopping Java process"
if isTrue "${AUTOSTOP_PKILL_USE_SUDO:-false}"; then
sudo pkill -f --signal SIGTERM mc-server-runner
else
pkill -f --signal SIGTERM mc-server-runner
fi
pkill -f --signal SIGTERM mc-server-runner

View File

@@ -1 +0,0 @@
minecraft ALL=(ALL) NOPASSWD:/usr/bin/pkill