0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

Fixes for travis and prerm script

This commit is contained in:
boltgolt 2018-04-07 16:30:31 +02:00
parent 50f36f2b90
commit ba8159033a
2 changed files with 5 additions and 19 deletions

View file

@ -2,13 +2,16 @@ language: python
sudo: required
before_install:
- apt install devscripts
- git clone https://github.com/Boltgolt/howdy.git /tmp/howdy_build
- cd /tmp/howdy_build
- debuild -i -us -uc -b
install: sudo apt install ../*.deb
install: sudo apt install ../*.deb -y
script: sudo howdy help
script:
- sudo howdy help
- sudo apt purge howdy -y
notifications:
email: false

17
debian/prerm vendored
View file

@ -4,27 +4,10 @@
# Import required modules
import subprocess
import sys
import os
# Check if we're running as root
user = os.getenv("SUDO_USER")
if user is None:
print("Please run the uninstaller as a sudo user")
sys.exit()
# Double check with the user for the last time
print("This will remove Howdy and all models generated with it")
ans = input("Do you want to continue? [y/N]: ")
# Abort if they don't say yes
if (ans.lower() != "y"):
sys.exit()
# Remove files and symlinks
subprocess.call(["rm -rf /lib/security/howdy/"], shell=True)
subprocess.call(["rm /usr/bin/howdy"], shell=True)
subprocess.call(["rm /etc/bash_completion.d/howdy"], shell=True)
# Remove face_recognition and dlib
subprocess.call(["pip3 uninstall face_recognition dlib -y"], shell=True)