From a3b3176ee2ff47dda2c5b0a78833e24e5215ba7f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 30 Oct 2023 21:52:24 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f2143ce4..dd3e7070 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -595,14 +595,14 @@ BACKUP_OFFSITEPFSENSE(){ if [ "$(date +%d)" == "${DOM}" ] && [ "$(date +%u)" == "${DOW}" ]; then mv ${newBAKFOLDER} "${newBAKFOLDER}-M" - ln "${newBAKFOLDER}-M" "${newBAKFOLDER}-W" - ln "${newBAKFOLDER}-M" "${newBAKFOLDER}-D" + ln -s "./${newBAKFOLDER}-M" "${newBAKFOLDER}-W" + ln -s "./${newBAKFOLDER}-M" "${newBAKFOLDER}-D" elif [ "$(date +%d)" == "${DOM}" ]; then mv ${newBAKFOLDER} "${newBAKFOLDER}-M" - ln "${newBAKFOLDER}-M" "${newBAKFOLDER}-D" + ln -s "./${newBAKFOLDER}-M" "${newBAKFOLDER}-D" elif [ "$(date +%u)" == "${DOW}" ]; then mv ${newBAKFOLDER} "${newBAKFOLDER}-W" - ln "${newBAKFOLDER}-W" "${newBAKFOLDER}-D" + ln -s "./${newBAKFOLDER}-W" "${newBAKFOLDER}-D" else mv ${newBAKFOLDER} "${newBAKFOLDER}-D" fi