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

Allow setting socket file permissions

parent dbed6b3b
Branches
No related tags found
No related merge requests found
......@@ -40,6 +40,14 @@
# ""
#)
#
# 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 defines the
......
......@@ -428,6 +428,10 @@ case $COMMAND in
[ "$DBG" -gt "0" ] && echotime "START - *** DBG-CMD: ps aux | grep -v grep | grep \"$0 --config $CONFIG_FILE manage $idx\" | awk '{print \$2}'"
echotime "START - Starting tunnel '${TUNNEL_NAMES[$idx]}' (ID $idx) ... PID: $RESULT_PID"
echo "Starting tunnel '${TUNNEL_NAMES[$idx]}' ... Done"
if [ -e "${SOCKETS[$idx]}" ]; then
chmod ${SOCKETS_PERMS[$idx]} ${SOCKETS[$idx]}
fi
fi
# sleep before every cycle to aviod overloading
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment