From: Clinton Ebadi Date: Fri, 12 Oct 2018 05:12:28 +0000 (-0400) Subject: domtool-publish: try to grab tokens if aklog is available X-Git-Tag: release_20181012 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/88c92f35c4b4d6edb4b865441e2d82f0a166e690 domtool-publish: try to grab tokens if aklog is available sudo on Debian Jessie and later drops tokens (but not kerberos tickets), make sure to refresh tokens so syncing files from afs doesn't fail. --- diff --git a/scripts/domtool-publish b/scripts/domtool-publish index 0f75802..1f1129e 100755 --- a/scripts/domtool-publish +++ b/scripts/domtool-publish @@ -1,5 +1,10 @@ #!/bin/sh -e +# grab tokens in case they were dropped by sudo +if [ -x "$(which aklog)" ]; then + aklog +fi + redo_exim() { sudo -u domtool touch /var/domtool/local_domains.cfg /var/domtool/relay_domains.cfg /var/domtool/mailman_domains.cfg /bin/echo -n "domainlist local_domains = " >/etc/exim4/conf.d/main/10_domtool-domains