mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 19:51:27 +00:00
Amended creation of /data/motioneye/motion.conf if it doesn't exist.
This commit is contained in:
parent
f3df893637
commit
573a2bf72d
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ if ! bashio::fs.directory_exists '/data/motioneye'; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Needed for existing installations.
|
# Needed for existing installations.
|
||||||
if ! bashio::fs.file_exists "${CONF}"; then
|
if ! bashio::fs.file_exists "${MOTION}"; then
|
||||||
cp /etc/motioneye/motion.conf "${CONF}" \
|
cp /etc/motioneye/motion.conf "${MOTION}" \
|
||||||
|| bashio::exit.nok 'Failed to create initial motion configuration'
|
|| bashio::exit.nok 'Failed to create initial motion configuration'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue