Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Somethings breaking on the cur call, sometimes. Log it, so we see what.
· 012ca969
Joerg Jaspert
authored
Mar 10, 2019
012ca969
Merge branch 'master' into deploy
· 05a54e23
Joerg Jaspert
authored
Mar 10, 2019
* master: Somethings breaking on the cur call, sometimes. Log it, so we see what.
05a54e23
Show whitespace changes
Inline
Side-by-side
scripts/debian/link_morgue.sh
View file @
05a54e23
...
...
@@ -112,13 +112,13 @@ while read mfile; do
fi
else
# If we run wherever, use curl and the http interface
if
curl
--fail
--silent
--max-time
120
--head
${
FARMURL
}
/
${
mshasum
}
>
/dev/null
;
then
if
out
=
$(
curl
--fail
--silent
--max-time
120
--head
${
FARMURL
}
/
${
mshasum
}
)
;
then
# Yes, lets symlink it
# Yay for tons of dangling symlinks, but when this is done a rsync
# will run and transfer the whole shitload of links over to the morgue host.
ln
-sf
"
${
FARMBASE
}
/
${
LVL1
}
/
${
LVL2
}
/
${
mshasum
}
"
"
${
mfile
}
"
else
touch
"
${
mfile
}
.nosnapshot"
||
true
echo
$out
>
"
${
mfile
}
.nosnapshot"
||
true
fi
fi
done
# for mfile in...
...
...