mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-26 14:36:28 +01:00
This commit is contained in:
0
changedetection.io/rootfs/blank
Normal file
0
changedetection.io/rootfs/blank
Normal file
14
changedetection.io/rootfs/etc/cont-init.d/21-folders.sh
Normal file
14
changedetection.io/rootfs/etc/cont-init.d/21-folders.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user