summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele Giacone <1o5g4r8o@gmail.com>2014-07-27 17:10:35 +0200
committerGabriele Giacone <1o5g4r8o@gmail.com>2014-07-27 17:11:01 +0200
commit55f65c43e5933f282accd975c3e61b4bf9af0ad2 (patch)
tree7538c905fb4135704eebd4e525c8f0af20d9f7e1
parent65b81d39b3423f8976f651714c7fac6ecb21aa57 (diff)
downloadjenkins.debian.net-55f65c43e5933f282accd975c3e61b4bf9af0ad2.tar.xz
Check VG presence too.
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index f2a87062..72cd2dc4 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -134,6 +134,8 @@ if [ "$PVNAME" = "" ]; then
else
if ! sudo pvs $PVNAME >/dev/null 2>&1; then
sudo pvcreate $PVNAME
+ fi
+ if ! sudo vgs $VGNAME >/dev/null 2>&1; then
sudo vgcreate $VGNAME $PVNAME
fi
fi