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 }