Ensure CONFIGDATA is properly set up

Fixes #37
This commit is contained in:
Joshua M. Boniface 2024-08-25 23:21:13 -04:00
parent 5a4ba50dc8
commit f1e361d211

View File

@ -40,28 +40,28 @@ case "$1" in
fi
# ensure $PROGRAMDATA exists
if [[ ! -d $PROGRAMDATA ]]; then
mkdir $PROGRAMDATA
mkdir -p $PROGRAMDATA
chown -R ${JELLYFIN_USER} $PROGRAMDATA
chgrp adm $PROGRAMDATA
chmod 0750 $PROGRAMDATA
fi
# ensure $CONFIGDATA exists
if [[ ! -d $CONFIGDATA ]]; then
mkdir $CONFIGDATA
if [[ ! -f $CONFIGDATA/system.xml ]]; then
mkdir -p $CONFIGDATA
chown -R ${JELLYFIN_USER} $CONFIGDATA
chgrp adm $CONFIGDATA
chmod 0750 $CONFIGDATA
fi
# ensure $LOGDATA exists
if [[ ! -d $LOGDATA ]]; then
mkdir $LOGDATA
mkdir -p $LOGDATA
chown -R ${JELLYFIN_USER} $LOGDATA
chgrp adm $LOGDATA
chmod 0750 $LOGDATA
fi
# ensure $CACHEDATA exists
if [[ ! -d $CACHEDATA ]]; then
mkdir $CACHEDATA
mkdir -p $CACHEDATA
chown -R ${JELLYFIN_USER} $CACHEDATA
chgrp adm $CACHEDATA
chmod 0750 $CACHEDATA