zoneminder

This commit is contained in:
Alexandre
2022-03-09 15:29:55 +01:00
parent 64355ad264
commit f2a00fcea5
3 changed files with 16 additions and 3 deletions

View File

@@ -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'
##################

View File

@@ -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]"
}

View 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"