summarylogtreecommitdiffstats
path: root/octoprint.install
blob: cf974c942367ae24b7a3025af917ce9d5d450017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install()
{
    systemd-sysusers

	mkdir -p /var/lib/octoprint
	chown -R octoprint:octoprint /var/lib/octoprint /usr/lib/octoprint

	echo "To start octoprint, run: systemctl start octoprint"
	echo "To enable octoprint at boot, run: systemctl enable octoprint"
}

pre_remove()
{
	systemctl stop octoprint
	systemctl disable octoprint
}