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 | 5 |
1 files changed, 5 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 4c40a8a..96a77a7 100644 --- a/abs/extra/plex-media-server/plex-media-server.install +++ b/abs/extra/plex-media-server/plex-media-server.install @@ -2,9 +2,14 @@ post_install() { systemd-sysusers plex.conf [[ -d /data/storage/disk0/media/plex ]] || install -dm 750 -o plex -g plex /data/storage/disk0/media/plex [[ -d /data/storage/disk0/media/plex/tmp ]] || install -dm 750 -o plex -g plex /data/storage/disk0/media/plex/tmp + [[ -d /data/storage/disk0/media/plex ]] && chown -R plex:plex /data/storage/disk0/media/plex add_service.sh plexmediaserver } +post_upgrade() { + [[ -d /data/storage/disk0/media/plex ]] && chown -R plex:plex /data/storage/disk0/media/plex +} + post_remove() { remove_service.sh plexmediaserver } |