From: Adam Dickmeiss Date: Thu, 18 Jul 2013 13:05:53 +0000 (+0200) Subject: id-pbuild.sh --upload updates archive X-Git-Url: http://jira.indexdata.com/?a=commitdiff_plain;h=63c28aa2f14f51746d43c9c75f92e0d86dac6b2d;p=git-tools-moved-to-github.git id-pbuild.sh --upload updates archive it invokes that on kebab. The user must be part of group "users" on kebab (/etc/sudoers). --- 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