Skip to content

Commit

Permalink
🔨 Fix deletion of uploadservices.json (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairpaul authored Oct 5, 2020
1 parent 9ac171b commit 5678f5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions motioneye/rootfs/etc/cont-init.d/motioneye.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ if ! bashio::fs.directory_exists '/share/motioneye'; then
fi

# Remove any existing action buttons before recreating
for old_action in lock unlock light alarm up right down left zoom preset; do
find /data/motioneye/. -name "${old_action}*" -delete
for old_action in lock unlock light_on light_off alarm_on alarm_off up right \
down left zoom_in zoom_out preset1 preset2 preset3 preset4 preset5 preset6 \
preset7 preset8 preset9; do
find /data/motioneye/. -name "${old_action}_*" -delete
done

# Creates action button scripts if any are configured
Expand Down

0 comments on commit 5678f5a

Please sign in to comment.