Commit 11c25faa authored by Holger Levsen's avatar Holger Levsen

fail clearly if node is running on read-only filesystem

Signed-off-by: Holger Levsen's avatarHolger Levsen <>
parent d7d9b1a5
......@@ -68,6 +68,10 @@ if [ "${0:0:5}" != "/tmp/" ] ; then
# mktemp some place for us...
TTT=$(mktemp --tmpdir=/tmp jenkins-script-XXXXXXXX)
if [ -z "$TTT" ] ; then
echo "Failed to create tmpfile, aborting. (Probably due to read-only filesystem…)"
exit 1
# prepare cleanup
trap common_cleanup INT TERM EXIT
# cp $0 to /tmp and run it from there
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment