summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-03 11:45:08 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-03 11:45:08 +0000
commitb3bb28b5238e4426f7f47de9be460e38c24d5c74 (patch)
treef5fb472b3b0db7d608a2ffc0fa3432810811bf8a
parent0664605dcef8ff42a23ef94de3a601ef7befef51 (diff)
downloaddefinitions-b3bb28b5238e4426f7f47de9be460e38c24d5c74.tar.gz
test for = True
-rw-r--r--openstack-swift.configure8
1 files changed, 2 insertions, 6 deletions
diff --git a/openstack-swift.configure b/openstack-swift.configure
index 6c959945..d971dd84 100644
--- a/openstack-swift.configure
+++ b/openstack-swift.configure
@@ -33,17 +33,13 @@ sed -f "$ROOT"/etc/openstack-swift-setup.sed -i \
"$ROOT"/etc/swift/object-server.conf
# "$ROOT"/etc/rsyncd.conf \
-echo "SWIFT_CONTROLLER: $SWIFT_CONTROLLER"
-
-if $SWIFT_CONTROLLER
+if [[ "$SWIFT_CONTROLLER" = True ]]
then
ln -s "/etc/systemd/system/openstack-swift-controller-setup.service" \
"$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-controller-setup.service"
fi
-echo "SWIFT_STORAGE: $SWIFT_STORAGE"
-
-if $SWIFT_STORAGE
+if [[ "$SWIFT_STORAGE" = True ]]
then
ln -s "/etc/systemd/system/openstack-swift-storage-setup.service" \
"$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-storage-setup.service"