Skip to content

Commit 770d055

Browse files
authored
Update nfsv4mountscript.sh
1 parent 2ba1e9a commit 770d055

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/nfsv4mountscript.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ CERT_PATH=
2727
CERT_UPDATE_COMMAND=
2828
STUNNEL_CAFILE=
2929

30+
stunnel_timeout_idle=61
3031
ssl_version=
3132

3233
# TODO: Might have to use portmap entry in future to determine the CONNECT_PORT for nfsv3.
@@ -218,6 +219,13 @@ add_stunnel_configuration()
218219
return 1
219220
fi
220221

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+
221229
echo >> $stunnel_conf_file
222230

223231
echo "[$storageaccount_ip]" >> $stunnel_conf_file
@@ -793,4 +801,4 @@ else
793801
fi
794802

795803
tls_nfsv4_files_share_mount
796-
fi
804+
fi

0 commit comments

Comments
 (0)