add password hook for motioneye

This commit is contained in:
Calin Crisan 2017-08-06 12:18:54 +03:00
parent 00a6a11c8b
commit 20efa99d61
2 changed files with 6 additions and 0 deletions

View File

@ -21,4 +21,5 @@ enable_update true
smtp_timeout 60
zip_timeout 500
add_remove_cameras true
password_hook /usr/libexec/meyepasswd

View File

@ -0,0 +1,5 @@
#!/bin/bash
test "$MEYE_USERNAME" == "admin" || exit 0
PASSWORD="$MEYE_PASSWORD" /usr/sbin/adminpasswd