summaryrefslogtreecommitdiffhomepage
path: root/packaging/dispatch.install
blob: 76837f5d51c03de7dab259d673412b6bba75ca63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
post_install() {
	echo ""
	echo "==> Dispatch (base) has been installed."
	echo "    Application files: /opt/dispatch"
	echo "    Config:"
	echo "      /etc/dispatch/dispatch-api.conf"
	echo "      /etc/dispatch/dispatch-frontend.conf"
	echo ""
	echo "    Run manually:"
	echo "      dispatch-api          # backend (port 18390 by default)"
	echo "      dispatch-frontend     # static frontend (port 18391 by default)"
	echo ""
	echo "    To run as a service, install one of:"
	echo "      pacman -S dispatch-systemd   # systemd user services"
	echo "      pacman -S dispatch-s6        # s6 services (Artix)"
	echo ""
	echo "    For the Electron desktop wrapper:"
	echo "      pacman -S dispatch-electron"
	echo ""
}

post_upgrade() {
	echo ""
	echo "==> Dispatch (base) upgraded."
	echo "    If you use dispatch-systemd, restart the units:"
	echo "      systemctl --user restart dispatch-api dispatch-frontend"
	echo "    If you use dispatch-s6, restart the services:"
	echo "      s6-svc -r /run/service/dispatch-api"
	echo "      s6-svc -r /run/service/dispatch-frontend"
	echo ""
}