Merge pull request #25128 from jb55/fix/plex-startup
plex: fix startup issue
This commit is contained in:
commit
38c98d1072
@ -91,7 +91,7 @@ in
|
|||||||
# Copy the database skeleton files to /var/lib/plex/.skeleton
|
# Copy the database skeleton files to /var/lib/plex/.skeleton
|
||||||
# See the the Nix expression for Plex's package for more information on
|
# See the the Nix expression for Plex's package for more information on
|
||||||
# why this is done.
|
# why this is done.
|
||||||
test -d "${cfg.dataDir}/.skeleton" || mkdir "${cfg.dataDir}/.skeleton"
|
install --owner ${cfg.user} --group ${cfg.group} -d "${cfg.dataDir}/.skeleton"
|
||||||
for db in "com.plexapp.plugins.library.db"; do
|
for db in "com.plexapp.plugins.library.db"; do
|
||||||
if [ ! -e "${cfg.dataDir}/.skeleton/$db" ]; then
|
if [ ! -e "${cfg.dataDir}/.skeleton/$db" ]; then
|
||||||
cp "${cfg.package}/usr/lib/plexmediaserver/Resources/base_$db" "${cfg.dataDir}/.skeleton/$db"
|
cp "${cfg.package}/usr/lib/plexmediaserver/Resources/base_$db" "${cfg.dataDir}/.skeleton/$db"
|
||||||
|
Loading…
Reference in New Issue
Block a user