summaryrefslogtreecommitdiffstats
path: root/abs/extra/plex-media-server/plex-media-server.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-11-30 16:55:05 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-11-30 16:55:05 (GMT)
commitcc6366a531bb97273a13dfdfaacc0983ca130907 (patch)
tree3325ce642d899ea69d950e8c884a2bfb9e84b40f /abs/extra/plex-media-server/plex-media-server.install
parentcbcd770129c3f298c07515e504dafc6c766429c5 (diff)
downloadlinhes_pkgbuild-cc6366a531bb97273a13dfdfaacc0983ca130907.zip
linhes_pkgbuild-cc6366a531bb97273a13dfdfaacc0983ca130907.tar.gz
linhes_pkgbuild-cc6366a531bb97273a13dfdfaacc0983ca130907.tar.bz2
plex-media-server: move tmp dir to plex dir.
by default the media/tmp dir is not is not writeable by the plex user
Diffstat (limited to 'abs/extra/plex-media-server/plex-media-server.install')
-rw-r--r--abs/extra/plex-media-server/plex-media-server.install4
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