From: Michael Tremer Date: Thu, 6 Feb 2020 13:29:58 +0000 (+0000) Subject: build.sh: Copy nightly builds onto NFS share X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f86cdec28b2ba0401d711748ef34c8b251f7cc1;p=people%2Fms%2Fnightly-builds.git build.sh: Copy nightly builds onto NFS share Signed-off-by: Michael Tremer --- diff --git a/build.sh b/build.sh index a4e08af..227c7cf 100755 --- a/build.sh +++ b/build.sh @@ -4,8 +4,7 @@ BASEDIR="/build/nightly" LOCKFILE="/tmp/.nightly-builds.lock" UPLOAD_DIR="${BASEDIR}/upload" -UPLOAD_TO="pakfire@fs01.haj.ipfire.org:/pub/nightly" -RSYNC_ARGS="" +UPLOAD_TO="/pub/nightly" extract_installer_from_iso() { local dir="${1}" @@ -114,12 +113,7 @@ build() { sync() { mkdir -p "${UPLOAD_DIR}" - # Acquire a Kerberos ticket for authentication - if ! klist &>/dev/null; then - kinit -k -t /etc/krb5.keytab "host/${HOSTNAME}" - fi - - rsync -avHz --progress ${RSYNC_ARGS} \ + sudo -u pakfire rsync -avHz --no-owner --delay-updates --progress \ "${UPLOAD_DIR}/" "${UPLOAD_TO}" }