for dist in ${DEBIAN_DIST}; do
scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/debian/${dist}
done
- 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
+ ssh ftp.indexdata.dk "sudo -n /home/indexdata/proj/git-tools/update-archive/update-yum-archive.sh"
+ fi
+ if test "${UBUNTU_DIST}" -o "${DEBIAN_DIST}"; then
+ ssh ftp.indexdata.dk "sudo -n /home/indexdata/proj/git-tools/update-archive/update-archive.sh --ubuntu=\"${UBUNTU_DIST}\" --debian=\"${DEBIAN_DIST}\""
+ fi
exit 0
fi