diff --git a/ssh-tunnel-manager.sh b/ssh-tunnel-manager.sh index 7924f6e4e8e4a7b3c8bbb5804cf3cf584afbc5d5..4739b15ede1f05eae4cef4b1e89a817ddf1e8ddb 100755 --- a/ssh-tunnel-manager.sh +++ b/ssh-tunnel-manager.sh @@ -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