#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# Create folders
mkdir -p \
    /data

# check Library permissions
PUID=${PUID:-911}
if [ -d /config/config ] && [ ! "$(stat -c %u /config/config)" = "$PUID" ]; then
    echo "Change in ownership detected, please be patient while we chown existing files"
    echo "This could take some time"
    lsiown -R abc:abc \
        /config
fi
