diff options
author | Joachim F <joachifm@users.noreply.github.com> | 2017-04-28 12:48:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 12:48:55 +0100 |
commit | 38c98d1072050dd0a1bbca5a25ebdc43d06f091f (patch) | |
tree | cc3d53fea8444fdd26785bd64f11c39341fff774 | |
parent | 0c40ea734033cc07ef5ff41ccc51d720b0650cea (diff) | |
parent | 35eeb08dc675a89d8f4c18da59f5c8995311b925 (diff) | |
download | nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.tar nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.tar.gz nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.tar.bz2 nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.tar.lz nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.tar.xz nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.tar.zst nixlib-38c98d1072050dd0a1bbca5a25ebdc43d06f091f.zip |
Merge pull request #25128 from jb55/fix/plex-startup
plex: fix startup issue
-rw-r--r-- | nixos/modules/services/misc/plex.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/plex.nix b/nixos/modules/services/misc/plex.nix index 9c0bea8d3bff..ecd9a6f52da2 100644 --- a/nixos/modules/services/misc/plex.nix +++ b/nixos/modules/services/misc/plex.nix @@ -91,7 +91,7 @@ in # Copy the database skeleton files to /var/lib/plex/.skeleton # See the the Nix expression for Plex's package for more information on # 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 if [ ! -e "${cfg.dataDir}/.skeleton/$db" ]; then cp "${cfg.package}/usr/lib/plexmediaserver/Resources/base_$db" "${cfg.dataDir}/.skeleton/$db" |