start/stop apport service according to its status

main
mirkobrombin 2 years ago
parent edb3b65c18
commit 0d96457a8a

@ -70,12 +70,14 @@ class Configurator:
if not checks.is_apport_installed():
Apt.install(['apport'])
Apt.update()
subprocess.run(['sudo', 'systemctl', 'start', 'apport.service'])
def __disable_apport(self):
if self.fake:
return self.__fake("Fake: Apport disabled")
if checks.is_apport_installed():
subprocess.run(['sudo', 'systemctl', 'stop', 'apport.service'])
Apt.purge(['apport'])
def __enable_distrobox(self):

Loading…
Cancel
Save