Just kidding here's an other one
This commit is contained in:
parent
f46161fa08
commit
c635b56c86
2 changed files with 1 additions and 16 deletions
1
debian/control
vendored
1
debian/control
vendored
|
|
@ -9,7 +9,6 @@ Vcs-Git: https://github.com/Boltgolt/howdy
|
|||
Package: howdy
|
||||
Homepage: https://github.com/Boltgolt/howdy
|
||||
Architecture: all
|
||||
Essential: no
|
||||
Depends: git, python3, python3-pip, python3-dev, python3-setuptools, build-essential, libpam-python, fswebcam, libopencv-dev, python-opencv, cmake
|
||||
Description: Windows Hello™ style authentication for Ubuntu.
|
||||
Use your built-in IR emitters and camera in combination with face recognition
|
||||
|
|
|
|||
16
debian/postinst
vendored
16
debian/postinst
vendored
|
|
@ -115,20 +115,6 @@ handleStatus(subprocess.call(["pip3", "install", "face_recognition"]))
|
|||
|
||||
log("Copying howdy data")
|
||||
|
||||
# Make sure /lib/security exists
|
||||
if not os.path.exists("/lib/security"):
|
||||
os.makedirs("/lib/security")
|
||||
|
||||
# Abort if a folder for howdy already exists
|
||||
if os.path.exists("/lib/security/howdy"):
|
||||
print("\033[31mPrevious installation of howdy found, aborting\033[0m")
|
||||
sys.exit(1)
|
||||
|
||||
subprocess.call(["ls", "-hals"])
|
||||
|
||||
# Copy howdy into it's new folder
|
||||
handleStatus(subprocess.call(["cp", "-R", "..", "/lib/security/howdy/"]))
|
||||
|
||||
# Manually change the camera id to the one picked
|
||||
for line in fileinput.input(["/lib/security/howdy/config.ini"], inplace = 1):
|
||||
print(line.replace("device_id = 1", "device_id = " + picked), end="")
|
||||
|
|
@ -238,4 +224,4 @@ print("https://github.com/Boltgolt/howdy-reports/issues/new?title=Post-installat
|
|||
|
||||
# Let the user know what to do with the link
|
||||
print("Installation complete.")
|
||||
print("If you want to help the development, please use the link above to post some camera-related information to github")
|
||||
print("\033[33mIf you want to help the development, please use the link above to post some camera-related information to github!\033[0m")
|
||||
|
|
|
|||
Loading…
Reference in a new issue