Fix migration scripts (#454)

This commit is contained in:
Franck Nijhof 2024-01-07 14:40:18 +01:00 committed by GitHub
parent 37b1cd5150
commit 0626ea113f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,13 +19,13 @@ fi
# Migration # Migration
if bashio::fs.file_exists "${CONF}"; then if bashio::fs.file_exists "${CONF}"; then
bashio::log.debug "Running startup migrations" bashio::log.debug "Running startup migrations"
/usr/lib/python3.10/site-packages/motioneye/scripts/migrateconf.sh "${CONF}" /usr/lib/python3.11/site-packages/motioneye/scripts/migrateconf.sh "${CONF}"
find /data/motioneye/ \ find /data/motioneye/ \
-maxdepth 1 \ -maxdepth 1 \
-type f \ -type f \
-name "thread-*.conf" \ -name "thread-*.conf" \
-exec \ -exec \
/usr/lib/python3.10/site-packages/motioneye/scripts/migrateconf.sh {} \; /usr/lib/python3.11/site-packages/motioneye/scripts/migrateconf.sh {} \;
fi fi
# Configure motion webcontrol access # Configure motion webcontrol access