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:
parent
50f36f2b90
commit
ba8159033a
2 changed files with 5 additions and 19 deletions
|
@ -2,13 +2,16 @@ language: python
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- apt install devscripts
|
||||||
- git clone https://github.com/Boltgolt/howdy.git /tmp/howdy_build
|
- git clone https://github.com/Boltgolt/howdy.git /tmp/howdy_build
|
||||||
- cd /tmp/howdy_build
|
- cd /tmp/howdy_build
|
||||||
- debuild -i -us -uc -b
|
- 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:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
17
debian/prerm
vendored
17
debian/prerm
vendored
|
@ -4,27 +4,10 @@
|
||||||
|
|
||||||
# Import required modules
|
# Import required modules
|
||||||
import subprocess
|
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
|
# Remove files and symlinks
|
||||||
subprocess.call(["rm -rf /lib/security/howdy/"], shell=True)
|
subprocess.call(["rm -rf /lib/security/howdy/"], shell=True)
|
||||||
subprocess.call(["rm /usr/bin/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
|
# Remove face_recognition and dlib
|
||||||
subprocess.call(["pip3 uninstall face_recognition dlib -y"], shell=True)
|
subprocess.call(["pip3 uninstall face_recognition dlib -y"], shell=True)
|
||||||
|
|
Loading…
Reference in a new issue