From 18d48f18884ee073da7656846e2c0d56bf754814 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Tue, 3 Mar 2015 11:45:08 +0000 Subject: test for = True --- openstack-swift.configure | 8 ++------ 1 file 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" -- cgit v1.2.1