summarylogtreecommitdiffstats
path: root/piaware-git.install
blob: 62622754d3c696bdb52bcf155aee61510d338b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
	getent passwd piaware || groupadd piaware
	getent passwd piaware || useradd -r -d /usr/share/piaware -M -g piaware piaware
	chown piaware:root /var/cache/piaware
        chown root:piaware /etc/piaware.conf
	systemctl enable piaware
}

pre_remove() {
	systemctl stop piaware
	systemctl disable piaware
}

post_upgrade() {
	post_install
}