Skip to content
Snippets Groups Projects
Commit 86f9878b authored by Erick Hitter's avatar Erick Hitter
Browse files

Allow time for socket to set up before changing permisisons

parent 95965ba4
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,14 @@ version=0.7 ...@@ -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 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 # the script is detecting that the connection was lost, the time defined the
...@@ -429,7 +437,9 @@ case $COMMAND in ...@@ -429,7 +437,9 @@ case $COMMAND in
echotime "START - Starting tunnel '${TUNNEL_NAMES[$idx]}' (ID $idx) ... PID: $RESULT_PID" echotime "START - Starting tunnel '${TUNNEL_NAMES[$idx]}' (ID $idx) ... PID: $RESULT_PID"
echo "Starting tunnel '${TUNNEL_NAMES[$idx]}' ... Done" echo "Starting tunnel '${TUNNEL_NAMES[$idx]}' ... Done"
sleep "0.2"
if [ -e "${SOCKETS[$idx]}" ]; then if [ -e "${SOCKETS[$idx]}" ]; then
echo "Setting socket permissions to ${SOCKETS_PERMS[$idx]}"
chmod ${SOCKETS_PERMS[$idx]} ${SOCKETS[$idx]} chmod ${SOCKETS_PERMS[$idx]} ${SOCKETS[$idx]}
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment