- echo ""
- echo "===================================================="
- echo "APT/YUM should be updated via cron every 15 minutes "
- echo " from July 11 2013 and later."
- echo "No need to call update archive on kebab"
- echo "===================================================="
+ if test "${CENTOS_DIST}"; then
+ if ! ssh ftp.indexdata.dk "sudo -n /home/indexdata/proj/git-tools/update-archive/update-yum-archive.sh"; then
+ echo "update-yum-archive.sh failed"
+ exit 1
+ fi
+ fi
+ if test "${UBUNTU_DIST}" -o "${DEBIAN_DIST}"; then
+ if ! ssh ftp.indexdata.dk "sudo -n /home/indexdata/proj/git-tools/update-archive/update-archive.sh --ubuntu=\"${UBUNTU_DIST}\" --debian=\"${DEBIAN_DIST}\""; then
+ echo "update-archive.sh failed"
+ exit 1
+ fi
+ fi
+ echo "Upload successful - we hope"