diff options
Diffstat (limited to 'openstack-swift.configure')
-rw-r--r-- | openstack-swift.configure | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openstack-swift.configure b/openstack-swift.configure index 1ab559a3..ee75d16a 100644 --- a/openstack-swift.configure +++ b/openstack-swift.configure @@ -33,9 +33,17 @@ sed -f "$ROOT"/etc/openstack-swift-setup.sed -i \ "$ROOT"/etc/swift/container-server.conf "$ROOT"/etc/swift/object-server.conf -ln -s "/etc/systemd/system/openstack-swift-setup.service" \ - "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-setup.service" +if $SWIFT_CONTROLLER +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 +if $SWIFT_STORAGE +then + ln -s "/etc/systemd/system/openstack-swift-storage-setup.service" \ + "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-storage-setup.service" +fi cat << EOF > "$ROOT"/usr/share/openstack/swift-vars.yml --- |