We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b0074 commit e6cd711Copy full SHA for e6cd711
files/auto/autopause-daemon.sh
@@ -45,11 +45,7 @@ if isTrue "${DEBUG_AUTOPAUSE}"; then
45
knockdArgs+=(-D)
46
fi
47
48
-if isTrue "${SKIP_SUDO}"; then
49
- /usr/local/sbin/knockd "${knockdArgs[@]}"
50
-else
51
- sudo /usr/local/sbin/knockd "${knockdArgs[@]}"
52
-fi
+/usr/local/sbin/knockd "${knockdArgs[@]}"
53
54
if [ $? -ne 0 ] ; then
55
logAutopause "Failed to start knockd daemon."
files/sudoers-mc
@@ -1,2 +1 @@
1
minecraft ALL=(ALL) NOPASSWD:/usr/bin/pkill
2
-minecraft ALL=(ALL) NOPASSWD:/usr/local/sbin/knockd
0 commit comments