Amended creation of /data/motioneye/motion.conf if it doesn't exist.

This commit is contained in:
clewsy 2020-02-10 06:56:45 +11:00
parent f3df893637
commit 573a2bf72d

View file

@ -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