2018-04-05 21:12:36 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# Executed on deinstallation
|
2018-02-13 23:59:23 +01:00
|
|
|
# Completely remove howdy from the system
|
|
|
|
|
|
|
|
# Import required modules
|
2018-02-13 15:00:30 +01:00
|
|
|
import subprocess
|
|
|
|
|
2018-02-13 23:59:23 +01:00
|
|
|
# Remove files and symlinks
|
2018-02-13 15:00:30 +01:00
|
|
|
subprocess.call(["rm -rf /lib/security/howdy/"], shell=True)
|
|
|
|
subprocess.call(["rm /usr/bin/howdy"], shell=True)
|
2018-02-13 23:59:23 +01:00
|
|
|
|
|
|
|
# Remove face_recognition and dlib
|
|
|
|
subprocess.call(["pip3 uninstall face_recognition dlib -y"], shell=True)
|
|
|
|
|
|
|
|
# Print a tearbending message
|
|
|
|
print("""
|
|
|
|
Howdy has been uninstalled :'(
|
|
|
|
|
|
|
|
There are still lines in /etc/pam.d/common-auth that can't be removed automatically
|
|
|
|
Run "nano /etc/pam.d/common-auth" to remove them by hand\
|
|
|
|
""")
|