🔥 Removed redundant copy statement. (#73)

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

* Removed redundant copy statement.
This commit is contained in:
clewsy 2020-02-24 07:47:04 +11:00 committed by GitHub
parent 1316420796
commit 817f401b01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,12 +11,6 @@ if ! bashio::fs.directory_exists '/data/motioneye'; then
|| bashio::exit.nok 'Failed to create initial motionEye configuration'
fi
# Needed for existing installations.
if ! bashio::fs.file_exists "${CONF}"; then
cp /etc/motioneye/motion.conf "${CONF}" \
|| bashio::exit.nok 'Failed to create initial motion configuration'
fi
# Migration
if bashio::fs.file_exists "${CONF}"; then
bashio::log.debug "Running startup migrations"