mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-05-31 19:33:57 +02:00
update repository references and improve script handling
This commit is contained in:
0
changedetection.io/rootfs/blank
Normal file
0
changedetection.io/rootfs/blank
Normal file
15
changedetection.io/rootfs/etc/cont-init.d/21-folders.sh
Executable file
15
changedetection.io/rootfs/etc/cont-init.d/21-folders.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user