Skip to content

Commit 000e5ad

Browse files
committed
add so it only updates for newip
1 parent cf1c4ba commit 000e5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aznfswatchdogv4

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ process_nfsv4_mounts()
375375
eecho "Failed to get the checksum hash of file: '${l_conf}'!"
376376
fi
377377

378-
if [ $checksumHash != $l_checksumhash ]; then
378+
if [ $checksumHash != $l_checksumhash && $old_ip == $new_ip]; then #daniewo skip if migrated
379379
eecho "'${l_conf}' file has modified!"
380380
eecho "It's not recommended to modify '${l_conf}' file created by aznfs mount helper!"
381381
eecho "watchdog service will do cleanup, kill stunnel process with pid:$(cat $l_pid) and remove '${l_conf}'; '${l_log}'; '${l_pid}'!"

0 commit comments

Comments
 (0)