]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Always acquire a Kerberos ticket
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 9 Feb 2020 14:27:02 +0000 (14:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 9 Feb 2020 14:28:23 +0000 (14:28 +0000)
It seems that when a ticket has expired, klist exits with
zero. Now we will always acquire a new ticket.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index a3e5a60bc274d693c22e2135fe05442b5d8c127e..cf95550c2226ca759c6edcf10d26fd48130e4adb 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -184,9 +184,7 @@ 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
+       kinit -k -t /etc/krb5.keytab "host/${HOSTNAME}"
 
        rsync -avH --progress "${RSYNC_ARGS[@]}" \
                "${UPLOAD_DIR}/" "${UPLOAD_TO}"