Files
nginx-proxy-manager/docker/rootfs/etc/cont-init.d/01_perms.sh
2022-10-07 15:26:13 -06:00

10 lines
267 B
Bash
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
set -e
log() {
echo -e "${BLUE}[cont-init.d] ${RED}$(basename "$0")${CYAN}>>>${RESET} $*"
}
mkdir -p /data/logs
log "Changing ownership of /data/logs to $(id -u):$(id -g)"
chown -R "$(id -u):$(id -g)" /data/logs