mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-12 18:39:55 +02:00
zoneminder
This commit is contained in:
12
zoneminder/rootfs/etc/cont-init.d/00-folders.sh
Normal file
12
zoneminder/rootfs/etc/cont-init.d/00-folders.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
#CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
||||
#CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
|
||||
CONFIGSOURCE="/config/addons_config/zoneminder"
|
||||
|
||||
# Create directory
|
||||
mkdir -p "$CONFIGSOURCE" || true
|
||||
|
||||
# Make sure permissions are right
|
||||
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|
||||
Reference in New Issue
Block a user