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