Commit 86f9878b authored by Erick Hitter's avatar Erick Hitter

Allow time for socket to set up before changing permisisons

parent 95965ba4
......@@ -40,6 +40,14 @@ version=0.7
# ""
#)
#
# The SOCKETS_PERMS array is used to configure permissions for forwarded sockets.
#
#SOCKETS_PERMS=(
# ""
# ""
#)
#
# The RECONNECT_TIMER is used in case of a tunnel connection to be lost. After
# the script is detecting that the connection was lost, the time defined the
......@@ -429,7 +437,9 @@ case $COMMAND in
echotime "START - Starting tunnel '${TUNNEL_NAMES[$idx]}' (ID $idx) ... PID: $RESULT_PID"
echo "Starting tunnel '${TUNNEL_NAMES[$idx]}' ... Done"
sleep "0.2"
if [ -e "${SOCKETS[$idx]}" ]; then
echo "Setting socket permissions to ${SOCKETS_PERMS[$idx]}"
chmod ${SOCKETS_PERMS[$idx]} ${SOCKETS[$idx]}
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment