From 63c28aa2f14f51746d43c9c75f92e0d86dac6b2d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 18 Jul 2013 15:05:53 +0200 Subject: [PATCH] id-pbuild.sh --upload updates archive it invokes that on kebab. The user must be part of group "users" on kebab (/etc/sudoers). --- id-deb-build/id-pbuild.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 8e131a6..037b8ca 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -188,12 +188,12 @@ if $upload; then 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 -- 1.7.10.4