mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-01 19:57:14 +00:00
No longer need to run knockd with sudo (#3472)
This commit is contained in:
@@ -45,11 +45,7 @@ if isTrue "${DEBUG_AUTOPAUSE}"; then
|
|||||||
knockdArgs+=(-D)
|
knockdArgs+=(-D)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if isTrue "${SKIP_SUDO}"; then
|
/usr/local/sbin/knockd "${knockdArgs[@]}"
|
||||||
/usr/local/sbin/knockd "${knockdArgs[@]}"
|
|
||||||
else
|
|
||||||
sudo /usr/local/sbin/knockd "${knockdArgs[@]}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
logAutopause "Failed to start knockd daemon."
|
logAutopause "Failed to start knockd daemon."
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
minecraft ALL=(ALL) NOPASSWD:/usr/bin/pkill
|
minecraft ALL=(ALL) NOPASSWD:/usr/bin/pkill
|
||||||
minecraft ALL=(ALL) NOPASSWD:/usr/local/sbin/knockd
|
|
||||||
|
|||||||
Reference in New Issue
Block a user