diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-01-11 11:57:36 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2008-01-11 11:57:36 +0000 |
commit | 4a162f6fc8d53d959dd23e1138059dd239ff5124 (patch) | |
tree | 650d2c3394b728aa694e6da9ea8ded29427ab99c /ipa-server/ipaserver/service.py | |
parent | c7f3c746ccfd74480064dbe73fbc754548c30927 (diff) | |
download | freeipa.git-4a162f6fc8d53d959dd23e1138059dd239ff5124.tar.gz freeipa.git-4a162f6fc8d53d959dd23e1138059dd239ff5124.tar.xz freeipa.git-4a162f6fc8d53d959dd23e1138059dd239ff5124.zip |
Add ipa-server-install --uninstall
Add a --uninstall option to ipa-server-install which tries to
restore the system to the way it was before ipa-server-install
was run using the state backed up through sysrestore.py.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'ipa-server/ipaserver/service.py')
-rw-r--r-- | ipa-server/ipaserver/service.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-server/ipaserver/service.py b/ipa-server/ipaserver/service.py index 0ea3f661..e960c43d 100644 --- a/ipa-server/ipaserver/service.py +++ b/ipa-server/ipaserver/service.py @@ -104,6 +104,9 @@ class Service: def backup_state(self, key, value): sysrestore.backup_state(self.service_name, key, value) + def restore_state(self, key): + return sysrestore.restore_state(self.service_name, key) + def print_msg(self, message): print_msg(message, self.output_fd) |