diff options
author | lassulus <lassulus@lassul.us> | 2017-10-03 21:40:47 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-10-03 21:40:47 +0200 |
commit | 6179ec63628b21905393c7deb15d6e9b272756a4 (patch) | |
tree | c04733ba3659ad28d765e36836ce3f398890fcfb /krebs/3modules/buildbot/slave.nix | |
parent | 5e51d98c4be96d992b8def3983e2a2c07cf11499 (diff) |
buildbot slave service: clean workingDir on change
Diffstat (limited to 'krebs/3modules/buildbot/slave.nix')
-rw-r--r-- | krebs/3modules/buildbot/slave.nix | 2 |
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 |