mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-04 19:21:22 +00:00
12 lines
522 B
Bash
12 lines
522 B
Bash
#!/usr/bin/with-contenv bash
|
|
# ==============================================================================
|
|
# Community Hass.io Add-ons: motionEye
|
|
# Creates initial motionEye media folder in case it is non-existing
|
|
# ==============================================================================
|
|
# shellcheck disable=SC1091
|
|
source /usr/lib/hassio-addons/base.sh
|
|
|
|
if ! hass.directory_exists '/share/motioneye'; then
|
|
mkdir -p /share/motioneye \
|
|
|| hass.die 'Failed to create initial motionEye media folder'
|
|
fi
|