3
0
Fork 0
forked from mirrors/nixpkgs

plex: fix preStart permissions

This commit is contained in:
Daiderd Jordan 2017-06-24 16:06:05 +02:00
parent 5d7fd7e7fa
commit c0cdf58807
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -82,7 +82,7 @@ in
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
preStart = ''
test -d "${cfg.dataDir}" || {
test -d "${cfg.dataDir}/Plex Media Server" || {
echo "Creating initial Plex data directory in \"${cfg.dataDir}\"."
mkdir -p "${cfg.dataDir}/Plex Media Server"
chown -R ${cfg.user}:${cfg.group} "${cfg.dataDir}"