summaryrefslogtreecommitdiffstats
path: root/abs
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
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')
-rw-r--r--abs/extra/plex-media-server/PKGBUILD4
-rw-r--r--abs/extra/plex-media-server/__changelog3
-rw-r--r--abs/extra/plex-media-server/plex-media-server.install4
-rw-r--r--abs/extra/plex-media-server/plexmediaserver.conf.d4
4 files changed, 10 insertions, 5 deletions
diff --git a/abs/extra/plex-media-server/PKGBUILD b/abs/extra/plex-media-server/PKGBUILD
index 5c5f91c..655eab3 100644
--- a/abs/extra/plex-media-server/PKGBUILD
+++ b/abs/extra/plex-media-server/PKGBUILD
@@ -9,7 +9,7 @@
pkgname=plex-media-server
pkgver=0.9.12.19.1537
_pkgsum=f38ac80
-pkgrel=1
+pkgrel=2
pkgdesc='Plex Media Server'
arch=('x86_64')
url='https://plex.tv/'
@@ -54,7 +54,7 @@ package() {
}
# vim: ts=2 sw=2 et:
-md5sums=('b67fd10314ab756169ec963f710cb9e3'
+md5sums=('dfd6778f5c0d3d64c2c3a71dca02b7cc'
'34268b981e3b8c833a0e2270429232a6'
'bd703bc750b989a27edd590eb8c8e9d7'
'506ec15815bba749a743780edd2323c8')
diff --git a/abs/extra/plex-media-server/__changelog b/abs/extra/plex-media-server/__changelog
index 54a2097..f410839 100644
--- a/abs/extra/plex-media-server/__changelog
+++ b/abs/extra/plex-media-server/__changelog
@@ -1,5 +1,6 @@
.install & conf.d - change /var/lib/plex to /data/storage/disk0/media/plex
-conf.d - change /tmp to data/storage/disk0/media/tmp
+conf.d - change /tmp to data/storage/disk0/media/plex/tmp
+plex-media-server.install - add check for data/storage/disk0/media/plex/tmp and create if needed
plex-media-server.install - add_service.sh in post_install; remove_service.sh in post_remove
PKGBUILD - move creation of /data/storage/disk0/media/plex to .install
PKGBUILD - add plexmediascanner.sh
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
diff --git a/abs/extra/plex-media-server/plexmediaserver.conf.d b/abs/extra/plex-media-server/plexmediaserver.conf.d
index d2a0190..85ff7a1 100644
--- a/abs/extra/plex-media-server/plexmediaserver.conf.d
+++ b/abs/extra/plex-media-server/plexmediaserver.conf.d
@@ -2,5 +2,5 @@ LD_LIBRARY_PATH=/opt/plexmediaserver
PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/data/storage/disk0/media/plex
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
-PLEX_MEDIA_SERVER_TMPDIR=/data/storage/disk0/media/tmp
-TMPDIR=/data/storage/disk0/media/tmp
+PLEX_MEDIA_SERVER_TMPDIR=/data/storage/disk0/media/plex/tmp
+TMPDIR=/data/storage/disk0/media/plex/tmp