diff --git a/functions.sh b/functions.sh index 92467fe..b9c198a 100755 --- a/functions.sh +++ b/functions.sh @@ -736,14 +736,14 @@ function tmuxx() { function checkbkp() { ENTRY - if ping -c 3 backup.vpn >/dev/null 2>&1 ; then + if ping -c 3 backup >/dev/null 2>&1 ; then local SSH="/usr/bin/ssh" - local CMD="$SSH -T root@backup.vpn" + local CMD="$SSH -T root@backup" $CMD /bin/bash << EOF sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r EOF else - echo "backup.vpn is not reachable -> exit" + echo "backup is not reachable -> exit" return 1 fi @@ -751,16 +751,16 @@ EOF } function checkbkp-full() { ENTRY - if ping -c 3 backup.vpn >/dev/null 2>&1 ; then + if ping -c 3 backupn >/dev/null 2>&1 ; then local SSH="/usr/bin/ssh" - local CMD="$SSH -T root@backup.vpn" + local CMD="$SSH -T root@backup" $CMD /bin/bash << EOF sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r EOF command -v pdsh && pdsh -g vpn sudo systemctl status backup.service else - logwarning "backup.vpn is not reachable -> exit" + logwarning "backup is not reachable -> exit" return 1 fi