summaryrefslogtreecommitdiffhomepage
path: root/packaging/dispatch.install
blob: 75b36ccab5c99ea508e43c17adec3366ac935a8d (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 system services (run as your user)"
	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 (replace <user>):"
	echo "      sudo systemctl restart dispatch-api@<user> dispatch-frontend@<user>"
	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 ""
}