mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
21 lines
609 B
Python
Executable file
21 lines
609 B
Python
Executable file
#!/usr/bin/env python3
|
|
# Executed on deinstallation
|
|
# Completely remove howdy from the system
|
|
|
|
# Import required modules
|
|
import subprocess
|
|
|
|
# Remove files and symlinks
|
|
subprocess.call(["rm -rf /lib/security/howdy/"], shell=True)
|
|
subprocess.call(["rm /usr/bin/howdy"], shell=True)
|
|
|
|
# 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\
|
|
""")
|