Not all distros include a symlink from euca-describe-group to euca-describe-groups
Change-Id: Iaba71c36b405d2891aebdb45c1b9fd84853988f5
This commit is contained in:
parent
fcd135252b
commit
a94784135e
@ -39,9 +39,9 @@ IMAGE=`euca-describe-images | grep machine | cut -f2 | head -n1`
|
|||||||
SECGROUP=euca_secgroup
|
SECGROUP=euca_secgroup
|
||||||
|
|
||||||
# Add a secgroup
|
# Add a secgroup
|
||||||
if ! euca-describe-group | grep -q $SECGROUP; then
|
if ! euca-describe-groups | grep -q $SECGROUP; then
|
||||||
euca-add-group -d "$SECGROUP description" $SECGROUP
|
euca-add-group -d "$SECGROUP description" $SECGROUP
|
||||||
if ! timeout $ASSOCIATE_TIMEOUT sh -c "while ! euca-describe-group | grep -q $SECGROUP; do sleep 1; done"; then
|
if ! timeout $ASSOCIATE_TIMEOUT sh -c "while ! euca-describe-groups | grep -q $SECGROUP; do sleep 1; done"; then
|
||||||
echo "Security group not created"
|
echo "Security group not created"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user