]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Copy nightly builds onto NFS share
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2020 13:29:58 +0000 (13:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2020 13:29:58 +0000 (13:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index a4e08afea31f24ef258a1a9e6ab7f6cfb4fee764..227c7cfd73099f4a3be152f21d765ef31be1c9aa 100755 (executable)
--- 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}"
 }