From 95a1fba3437b53e6851332c3269fcb7d2e0926ea Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Mon, 6 Mar 2023 12:04:22 +0100 Subject: Made update-cron.sh use do-update.sh to fecth metadata --- metadata/scripts/update-cron.sh | 8 ++++---- scripts/do-update.sh | 10 ---------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/metadata/scripts/update-cron.sh b/metadata/scripts/update-cron.sh index f00daa03..8f9ed813 100755 --- a/metadata/scripts/update-cron.sh +++ b/metadata/scripts/update-cron.sh @@ -2,9 +2,9 @@ update() { - echo "git pull" - git pull || return $? - echo + #echo "git pull" + #git pull || return $? + #echo echo "make aggregate" make aggregate || return $? @@ -23,5 +23,5 @@ update() #echo } -cd /opt/swamid-metadata || exit 1 +cd /opt/metadata || exit 1 update diff --git a/scripts/do-update.sh b/scripts/do-update.sh index 5dc38700..6b29a34f 100755 --- a/scripts/do-update.sh +++ b/scripts/do-update.sh @@ -1,13 +1,3 @@ #!/bin/bash cd /var/cache/metadata_git.swamid.se && make update -rsync -a /opt/metadata/swamid-internal/* /opt/metadata/swamid-qa - -./scripts/download-pending -cd /var/cache/metadata_git.swamid.se/metadata || exit 2 -for file in `ls swamid-internal/` ; do - if [ -r swamid-qa/$file ]; then - diff swamid-internal/$file swamid-qa/$file || exit 1 - fi -done -#/opt/metadata/scripts/update-and-validate.sh -- cgit v1.2.3