Remove drain subprocess
Leftover from previous drain dir glob implementation
@@ -226,11 +226,11 @@ shopt -s nullglob
waitExit() {
e="$1"
touch /mnt/drain-stamps/` + container.Name + `
+ echo "Waiting for other drain scripts to finish."
while [ $(ls -1 /mnt/drain-stamps | wc -l) -lt ` + processCount + ` ]; do sleep 5; done
exit "$e"
}
s="` + drainScript + `"
-(
if [ ! -x "$s" ]; then
waitExit 0
fi
@@ -255,9 +255,6 @@ s="` + drainScript + `"
waitExit 0
fi
done
-)&
-echo "Waiting for subprocesses to finish..."
-wait
echo "Done"`,
},
},
