From 573a2bf72d58817e234b0cc80bb1bca58f53174c Mon Sep 17 00:00:00 2001 From: clewsy Date: Mon, 10 Feb 2020 06:56:45 +1100 Subject: [PATCH] Amended creation of /data/motioneye/motion.conf if it doesn't exist. --- motioneye/rootfs/etc/cont-init.d/motioneye.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motioneye/rootfs/etc/cont-init.d/motioneye.sh b/motioneye/rootfs/etc/cont-init.d/motioneye.sh index 396d9eb..35bb15d 100644 --- a/motioneye/rootfs/etc/cont-init.d/motioneye.sh +++ b/motioneye/rootfs/etc/cont-init.d/motioneye.sh @@ -12,8 +12,8 @@ if ! bashio::fs.directory_exists '/data/motioneye'; then fi # Needed for existing installations. -if ! bashio::fs.file_exists "${CONF}"; then - cp /etc/motioneye/motion.conf "${CONF}" \ +if ! bashio::fs.file_exists "${MOTION}"; then + cp /etc/motioneye/motion.conf "${MOTION}" \ || bashio::exit.nok 'Failed to create initial motion configuration' fi