mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
VR: remove apache2 config for removed VPC tiers (#7982)
This commit is contained in:
parent
8aa45c1a98
commit
10d7e6cf6f
@ -668,8 +668,12 @@ class CsIP:
|
|||||||
logging.info("Not making dns publicly available")
|
logging.info("Not making dns publicly available")
|
||||||
|
|
||||||
if self.config.has_metadata():
|
if self.config.has_metadata():
|
||||||
app = CsApache(self)
|
if method == "add":
|
||||||
app.setup()
|
app = CsApache(self)
|
||||||
|
app.setup()
|
||||||
|
elif method == "delete":
|
||||||
|
app = CsApache(self)
|
||||||
|
app.remove()
|
||||||
|
|
||||||
# If redundant then this is dealt with
|
# If redundant then this is dealt with
|
||||||
# by the primary backup functions
|
# by the primary backup functions
|
||||||
|
|||||||
@ -34,7 +34,7 @@ class CsApache(CsApp):
|
|||||||
""" Set up Apache """
|
""" Set up Apache """
|
||||||
|
|
||||||
def remove(self):
|
def remove(self):
|
||||||
file = "/etc/apache2/sites-enabled/vhost-%s.conf" % self.dev
|
file = "/etc/apache2/sites-enabled/vhost-%s.conf" % self.ip
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
os.remove(file)
|
os.remove(file)
|
||||||
CsHelper.service("apache2", "restart")
|
CsHelper.service("apache2", "restart")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user