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 1d57487 commit 94c8a86Copy full SHA for 94c8a86
files/auto/autopause-daemon.sh
@@ -45,7 +45,12 @@ if isTrue "${DEBUG_AUTOPAUSE}"; then
45
knockdArgs+=(-D)
46
fi
47
48
-sudo /usr/local/sbin/knockd "${knockdArgs[@]}"
+if isTrue "${SKIP_SUDO}"; then
49
+ /usr/local/sbin/knockd "${knockdArgs[@]}"
50
+else
51
+ sudo /usr/local/sbin/knockd "${knockdArgs[@]}"
52
+fi
53
+
54
if [ $? -ne 0 ] ; then
55
logAutopause "Failed to start knockd daemon."
56
logAutopause "Probable cause: Unable to attach to interface \"$AUTOPAUSE_KNOCK_INTERFACE\"."
0 commit comments