update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
VERS='4.12.1-09042023'
|
||||
VERS='4.12.3-09042023'
|
||||
|
||||
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense '
|
||||
CERT_DAEMON='/snap/bin/certbot'
|
||||
|
||||
@@ -582,14 +582,14 @@ BACKUP_OFFSITEPFSENSE(){
|
||||
|
||||
if [ "$(date +%d)" == "04" ] && [ "$(date +%u)" == "1" ]; then
|
||||
mv ${newBAKFOLDER} "${newBAKFOLDER}-M"
|
||||
ln -s "${newBAKFOLDER}-W" "${newBAKFOLDER}-M"
|
||||
ln -s "${newBAKFOLDER}-D" "${newBAKFOLDER}-M"
|
||||
ln -s "${newBAKFOLDER}-M" "${newBAKFOLDER}-W"
|
||||
ln -s "${newBAKFOLDER}-M" "${newBAKFOLDER}-D"
|
||||
elif [ "$(date +%d)" == "04" ]; then
|
||||
mv ${newBAKFOLDER} "${newBAKFOLDER}-M"
|
||||
ln -s "${newBAKFOLDER}-D" "${newBAKFOLDER}-M"
|
||||
ln -s "${newBAKFOLDER}-M" "${newBAKFOLDER}-D"
|
||||
elif [ "$(date +%u)" == "1" ]; then
|
||||
mv ${newBAKFOLDER} "${newBAKFOLDER}-W"
|
||||
ln -s "${newBAKFOLDER}-D" "${newBAKFOLDER}-W"
|
||||
ln -s "${newBAKFOLDER}-W" "${newBAKFOLDER}-D"
|
||||
else
|
||||
mv ${newBAKFOLDER} "${newBAKFOLDER}-D"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user