X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcronscript;h=2418d79a75249ad441c8e6e8e4ad303a391a574d;hb=8f72f604a89bb3ff3dba82521dd9fc474208f189;hp=b9cdf25296d47fa7849884e4caaca7067e6a781a;hpb=eeba442951dc24ca07de612d33d4be4d5813bd9b;p=dak.git diff --git a/config/debian/cronscript b/config/debian/cronscript index b9cdf252..2418d79a 100755 --- a/config/debian/cronscript +++ b/config/debian/cronscript @@ -47,8 +47,12 @@ shopt -s extglob export LANG=C.UTF-8 export LC_ALL=C.UTF-8 -# import the general variable set. -export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars +# If run from crontab, CONFIGDIR will point to the correct dir +# where we find the vars file +configdir=${configdir:-"/srv/ftp-master.debian.org/dak/config/debian"} +# import the general variable set. (This will overwrite configdir, but +# it is expected to have the same value) +export SCRIPTVARS=${configdir}/vars . $SCRIPTVARS # One arg please