8 class plc_uninstall(Test):
10 Completely removes the installed myplc
13 def call(self, remove_all = False):
15 command = "/sbin/service plc safestop; rpm -e myplc "
17 command += " && rm -rf /plc/data"
19 if self.config.verbose:
20 utils.header("Removing myplc")
22 (stdout, stderr) = utils.popen(command)
23 if self.config.verbose:
24 utils.header("\n".join(stdout))
26 (stdout, stderr) = utils.popen(command)
27 if self.config.verbose:
28 utiils.header("\n".join(stdout))
32 if __name__ == '__main__':
33 args = tuple(sys.argv[1:])