mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
15 lines
307 B
Bash
15 lines
307 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
# 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"
|