summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-12 18:27:46 +0000
committerintrigeri <intrigeri@boum.org>2016-05-12 19:17:39 +0000
commit7215ff11deed26ac8e56aa09dc09b2075993dab7 (patch)
treee46d99260d840f19bbf9795033a1ddbc3a7e64f1 /bin
parent7937add39c1dcb0d02910b0c9e81bb9add884cce (diff)
tag-apt-snapshots: use the remote $HOME/tmp as TMPDIR.
On apt.lizard, /tmp hasn't enough space to host a full tagged snapshot, so let's use the disk that is meant for APT snapshots. This also avoids creating a lot of I/O load on a drive that wasn't meant to.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tag-apt-snapshots7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/tag-apt-snapshots b/bin/tag-apt-snapshots
index 550f65d..afb7de8 100755
--- a/bin/tag-apt-snapshots
+++ b/bin/tag-apt-snapshots
@@ -20,8 +20,11 @@ TAG="$2"
[ -n "$TAG" ] || fail_with_usage
echo "I: Preparing a workspace on ${TIME_BASED_SNAPSHOTS_HOST}"
-REMOTE_BUILD_MANIFEST=$(ssh "$TIME_BASED_SNAPSHOTS_USER_AT_HOST" mktemp)
-REMOTE_DEST_DIR=$(ssh "$TIME_BASED_SNAPSHOTS_USER_AT_HOST" mktemp -d)
+ssh "$TIME_BASED_SNAPSHOTS_USER_AT_HOST" install -d '$HOME'/tmp
+REMOTE_BUILD_MANIFEST=$(ssh "$TIME_BASED_SNAPSHOTS_USER_AT_HOST" \
+ mktemp --tmpdir='$HOME'/tmp)
+REMOTE_DEST_DIR=$(ssh "$TIME_BASED_SNAPSHOTS_USER_AT_HOST" \
+ mktemp -d --tmpdir='$HOME'/tmp)
echo "I: Sending build manifest to ${TIME_BASED_SNAPSHOTS_HOST}"
scp "$BUILD_MANIFEST" \