We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba1e9a commit 770d055Copy full SHA for 770d055
src/nfsv4mountscript.sh
@@ -27,6 +27,7 @@ CERT_PATH=
27
CERT_UPDATE_COMMAND=
28
STUNNEL_CAFILE=
29
30
+stunnel_timeout_idle=61
31
ssl_version=
32
33
# TODO: Might have to use portmap entry in future to determine the CONNECT_PORT for nfsv3.
@@ -218,6 +219,13 @@ add_stunnel_configuration()
218
219
return 1
220
fi
221
222
+ echo "TIMEOUTidle = $stunnel_timeout_idle" >> $stunnel_conf_file
223
+ if [ $? -ne 0 ]; then
224
+ chattr -f +i $stunnel_conf_file
225
+ eecho "Failed to add TIMEOUTidle to $stunnel_conf_file!"
226
+ return 1
227
+ fi
228
+
229
echo >> $stunnel_conf_file
230
231
echo "[$storageaccount_ip]" >> $stunnel_conf_file
@@ -793,4 +801,4 @@ else
793
801
794
802
795
803
tls_nfsv4_files_share_mount
796
-fi
804
+fi
0 commit comments