summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipaserver/webguiinstance.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server/ipaserver/webguiinstance.py')
-rw-r--r--ipa-server/ipaserver/webguiinstance.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipa-server/ipaserver/webguiinstance.py b/ipa-server/ipaserver/webguiinstance.py
index f39002450..10b80ec37 100644
--- a/ipa-server/ipaserver/webguiinstance.py
+++ b/ipa-server/ipaserver/webguiinstance.py
@@ -35,3 +35,12 @@ class WebGuiInstance(service.Service):
def __enable(self):
self.backup_state("enabled", self.is_enabled())
self.chkconfig_on()
+
+ def uninstall(self):
+ running = self.restore_state("running")
+ enabled = not self.restore_state("enabled")
+
+ if not running is None and not running:
+ self.stop()
+ if not enabled is None and not enabled:
+ self.chkconfig_off()