mirror of
https://github.com/jellyfin/jellyfin-packaging.git
synced 2024-11-27 00:00:25 +00:00
parent
5a4ba50dc8
commit
f1e361d211
10
debian/jellyfin-server.postinst
vendored
10
debian/jellyfin-server.postinst
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user