mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 03:31:22 +00:00
🔨 Fix deletion of uploadservices.json (#125)
This commit is contained in:
parent
9ac171b321
commit
5678f5a0c7
1 changed files with 4 additions and 2 deletions
|
@ -45,8 +45,10 @@ if ! bashio::fs.directory_exists '/share/motioneye'; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove any existing action buttons before recreating
|
# Remove any existing action buttons before recreating
|
||||||
for old_action in lock unlock light alarm up right down left zoom preset; do
|
for old_action in lock unlock light_on light_off alarm_on alarm_off up right \
|
||||||
find /data/motioneye/. -name "${old_action}*" -delete
|
down left zoom_in zoom_out preset1 preset2 preset3 preset4 preset5 preset6 \
|
||||||
|
preset7 preset8 preset9; do
|
||||||
|
find /data/motioneye/. -name "${old_action}_*" -delete
|
||||||
done
|
done
|
||||||
|
|
||||||
# Creates action button scripts if any are configured
|
# Creates action button scripts if any are configured
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue