Skip to content

Commit e6cd711

Browse files
authored
No longer need to run knockd with sudo (#3472)
1 parent 67b0074 commit e6cd711

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

files/auto/autopause-daemon.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ if isTrue "${DEBUG_AUTOPAUSE}"; then
4545
knockdArgs+=(-D)
4646
fi
4747

48-
if isTrue "${SKIP_SUDO}"; then
49-
/usr/local/sbin/knockd "${knockdArgs[@]}"
50-
else
51-
sudo /usr/local/sbin/knockd "${knockdArgs[@]}"
52-
fi
48+
/usr/local/sbin/knockd "${knockdArgs[@]}"
5349

5450
if [ $? -ne 0 ] ; then
5551
logAutopause "Failed to start knockd daemon."

files/sudoers-mc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
minecraft ALL=(ALL) NOPASSWD:/usr/bin/pkill
2-
minecraft ALL=(ALL) NOPASSWD:/usr/local/sbin/knockd

0 commit comments

Comments
 (0)