From 20efa99d613fa0d159b4f380a45636d3eb8972d7 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 6 Aug 2017 12:18:54 +0300 Subject: [PATCH] add password hook for motioneye --- board/common/overlay/etc/motioneye.conf | 1 + board/common/overlay/usr/libexec/meyepasswd | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 board/common/overlay/usr/libexec/meyepasswd diff --git a/board/common/overlay/etc/motioneye.conf b/board/common/overlay/etc/motioneye.conf index 774921b3c1..4a633dc097 100644 --- a/board/common/overlay/etc/motioneye.conf +++ b/board/common/overlay/etc/motioneye.conf @@ -21,4 +21,5 @@ enable_update true smtp_timeout 60 zip_timeout 500 add_remove_cameras true +password_hook /usr/libexec/meyepasswd diff --git a/board/common/overlay/usr/libexec/meyepasswd b/board/common/overlay/usr/libexec/meyepasswd new file mode 100755 index 0000000000..b59b1314ed --- /dev/null +++ b/board/common/overlay/usr/libexec/meyepasswd @@ -0,0 +1,5 @@ +#!/bin/bash + +test "$MEYE_USERNAME" == "admin" || exit 0 +PASSWORD="$MEYE_PASSWORD" /usr/sbin/adminpasswd +