summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-10-03 21:40:47 +0200
committerlassulus <lassulus@lassul.us>2017-10-03 21:40:47 +0200
commit6179ec63628b21905393c7deb15d6e9b272756a4 (patch)
treec04733ba3659ad28d765e36836ce3f398890fcfb /krebs
parent5e51d98c4be96d992b8def3983e2a2c07cf11499 (diff)
buildbot slave service: clean workingDir on change
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/buildbot/slave.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/krebs/3modules/buildbot/slave.nix b/krebs/3modules/buildbot/slave.nix
index 544f9c4e0..0af553c5d 100644
--- a/krebs/3modules/buildbot/slave.nix
+++ b/krebs/3modules/buildbot/slave.nix
@@ -160,6 +160,8 @@ let
# TODO: maybe also prepare buildbot.tac?
ExecStartPre = pkgs.writeDash "buildbot-master-init" ''
set -efux
+ #remove garbage from old versions
+ rm -r ${workdir}
mkdir -p ${workdir}/info
cp ${buildbot-slave-init} ${workdir}/buildbot.tac
echo ${contact} > ${workdir}/info/admin