summarylogtreecommitdiffstats
path: root/plex-media-player-standalone-service.install
blob: 8eae2611f2e264b9a23b9c990f106f15145efdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pre_upgrade() {
	pre_install
}

pre_install() {
	if [ -f /usr/lib/systemd/system/plexmediaplayer.service ]; then
		if /usr/bin/systemctl is-active --quiet plexmediaplayer.service; then
			# PMP is running via this service
      echo "==> stopping running PMP service..."
			/usr/bin/systemctl --quiet stop plexmediaplayer.service
		fi
	fi
}

# vim: ts=2 sw=2 et: