Files
hassio-addons/browser_chromium/rootfs/etc/cont-init.d/20-folders.sh
2026-01-16 20:07:28 +01:00

24 lines
476 B
Bash
Executable File

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# shellcheck disable=SC2046
set -e
# Define user
PUID=$(bashio::config "PUID")
PGID=$(bashio::config "PGID")
# Create cache
#mkdir -p /.cache
#chmod 755 /.cache
#if [ -d "/config/.cache" ]; then
# cp -rf /config/.cache/. /.cache/.
# rm -r /config/.cache
#fi
#ln -sf /config/.cache /.cache
# Set ownership
bashio::log.info "Setting ownership to $PUID:$PGID"
chown -R "$PUID":"$PGID" /config
chmod -R 700 /config