[Piuparts-commits] [piuparts] 01/01: improve $PIUPARTS_TMPDIR creation for DSA setup
Holger Levsen
holger at layer-acht.org
Mon Feb 27 16:55:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 52cf525caf8d997af6f97fc24d523eca79869d88
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Feb 27 17:55:26 2017 +0100
improve $PIUPARTS_TMPDIR creation for DSA setup
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update-piuparts-slave-setup | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/update-piuparts-slave-setup b/update-piuparts-slave-setup
index 742b540..94661c3 100755
--- a/update-piuparts-slave-setup
+++ b/update-piuparts-slave-setup
@@ -5,7 +5,7 @@ set -e
# update piuparts slave setup from git (eg. used on piu-slave-*.debian.org)
#
-# Copyright 2009-2013 Holger Levsen (holger at layer-acht.org)
+# Copyright 2009-2013, 2017 Holger Levsen (holger at layer-acht.org)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
@@ -92,7 +92,15 @@ done
#
# create working dir
#
-mkdir -p $PIUPARTS_TMPDIR
+if [ ! -d $PIUPARTS_TMPDIR ] ; then
+ if ! [ -L $PIUPARTS_TMPDIR ] && [ -d /srv/piuparts-workspace ] ; then
+ ln -sf /srv/piuparts-workspace $PIUPARTS_TMPDIR
+ fi
+fi
+if [ ! -d $PIUPARTS_TMPDIR ] && [ ! -L $PIUPARTS_TMPDIR ] ; then
+ echo "$PIUPARTS_TMPDIR is neither a directory nor link, please fix."
+ exit 1
+fi
#
# update slave home
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list