mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
zoneminder
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
ARG BUILD_FROM
|
||||
ARG BUILD_VERSION
|
||||
ARG BUILD_UPSTREAM="1.0"
|
||||
ARG BUILD_UPSTREAM="test"
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
##################
|
||||
@@ -26,6 +26,7 @@ FROM ${BUILD_FROM}
|
||||
# Global variables
|
||||
ENV DZM_CONFIG_DIR="/config/addons_config/zoneminder"
|
||||
# Change data location
|
||||
# hadolint ignore=DL4006
|
||||
RUN grep -rl "/config" /etc/ | xargs sed -i 's|/config|/config/addons_config/zoneminder|g'
|
||||
|
||||
##################
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
"ZM_DB_PASS": "str?"
|
||||
},
|
||||
"slug": "zoneminder",
|
||||
"upstream": "1.2",
|
||||
"upstream": "test",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"version": "1.1",
|
||||
"version": "test",
|
||||
"services": ["mysql:want"],
|
||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||
}
|
||||
|
||||
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