Fixup is_apache24 check pre apache2 installation
This commit is contained in:
@@ -30,11 +30,9 @@ RELOAD_CHECK = "To activate the new configuration"
|
|||||||
def is_apache24():
|
def is_apache24():
|
||||||
try:
|
try:
|
||||||
version = subprocess.check_output(['a2query', '-v'])
|
version = subprocess.check_output(['a2query', '-v'])
|
||||||
if version.startswith('2.4'):
|
return version.startswith('2.4')
|
||||||
return True
|
except (subprocess.CalledProcessError, OSError):
|
||||||
else:
|
# Catch OSError just in case apache2 not yet installed
|
||||||
return False
|
|
||||||
except subprocess.CalledProcessError:
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,15 +49,15 @@ delay_auth_decision = {{ delay_auth_decision|lower }}
|
|||||||
{% if os_release != 'essex' %}signing_dir = /etc/swift{% endif %}
|
{% if os_release != 'essex' %}signing_dir = /etc/swift{% endif %}
|
||||||
cache = swift.cache
|
cache = swift.cache
|
||||||
|
|
||||||
#[filter:s3token]
|
[filter:s3token]
|
||||||
#paste.filter_factory = keystoneclient.middleware.s3_token:filter_factory
|
paste.filter_factory = keystone.middleware.s3_token:filter_factory
|
||||||
#service_host = {{ keystone_host }}
|
service_host = {{ keystone_host }}
|
||||||
#service_port = {{ service_port }}
|
service_port = {{ service_port }}
|
||||||
#auth_port = {{ auth_port }}
|
auth_port = {{ auth_port }}
|
||||||
#auth_host = {{ keystone_host }}
|
auth_host = {{ keystone_host }}
|
||||||
#auth_protocol = {{ auth_protocol }}
|
auth_protocol = {{ auth_protocol }}
|
||||||
#auth_token = {{ admin_token }}
|
auth_token = {{ admin_token }}
|
||||||
#admin_token = {{ admin_token }}
|
admin_token = {{ admin_token }}
|
||||||
|
|
||||||
[filter:swift3]
|
[filter:swift3]
|
||||||
{% if os_release == 'essex' %}use = egg:swift#swift3{% else %}use = egg:swift3#swift3
|
{% if os_release == 'essex' %}use = egg:swift#swift3{% else %}use = egg:swift3#swift3
|
||||||
|
|||||||
Reference in New Issue
Block a user