mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-01-09 06:51:03 +01:00
16 lines
314 B
Bash
Executable File
16 lines
314 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
# Define user
|
|
PUID=$(bashio::config "PUID")
|
|
PGID=$(bashio::config "PGID")
|
|
|
|
# Check data location
|
|
LOCATION="/config/addons_config/changedetection.io"
|
|
|
|
# Check structure
|
|
mkdir -p "$LOCATION"
|
|
chown -R "$PUID":"$PGID" "$LOCATION"
|
|
chmod -R 755 "$LOCATION"
|