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-04 15:36:11 +0000
commit18d48f18884ee073da7656846e2c0d56bf754814 (patch)
tree6a79c3668e8bba03119f3ae374a22c16ffb1f543
parent6fb3195f5a0d5144bec691a80760cba7d91f1a25 (diff)
downloaddefinitions-18d48f18884ee073da7656846e2c0d56bf754814.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"