diff options
Diffstat (limited to 'abs/extra/plex-media-server/plex-media-server.install')
-rw-r--r-- | abs/extra/plex-media-server/plex-media-server.install | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/abs/extra/plex-media-server/plex-media-server.install b/abs/extra/plex-media-server/plex-media-server.install index ac4a349..e677521 100644 --- a/abs/extra/plex-media-server/plex-media-server.install +++ b/abs/extra/plex-media-server/plex-media-server.install @@ -3,6 +3,10 @@ post_install() { install -dm 755 /data/storage/disk0/media/plex chown 421:421 -R /data/storage/disk0/media/plex fi + if [[ ! -d /data/storage/disk0/media/plex/tmp ]]; then + install -dm 755 /data/storage/disk0/media/plex/tmp + chown 421:421 -R /data/storage/disk0/media/plex/tmp + fi if [[ -n $(getent group 421) && $(getent group 421) != $(getent group plex) ]]; then echo "GID 421 is already assigned to the $(getent group 421 | cut -d':' -f1) group, cannot create the plex group." elif [[ -n $(getent passwd 421) && $(getent passwd 421) != $(getent passwd plex) ]]; then |