summaryrefslogtreecommitdiffstats
path: root/abs/extra/plex-media-server/plex-media-server.install
blob: e626eda4df320650f496bfe83c17135df113cf5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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() {
  systemd-sysusers plex.conf
  [[ -d /data/storage/disk0/media/plex ]] && chown -R plex:plex /data/storage/disk0/media/plex
}

post_remove() {
  remove_service.sh plexmediaserver
}

# vim: ts=2 sw=2 et: