summarylogtreecommitdiffstats
path: root/homebridge-config-ui-x.install
blob: c90da78b43352b78bbc992454bdf86c293fdfc58 (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
32
post_install() {
	cat <<-EOF

	Start homebridge + ui with systemd:

	$ systemctl enable --now homebridge

	Caveats:

	1) /usr/bin/hb-service places files all over the system, and it will
	also modify /etc/sudoers. It is also capable of installing an
	alternative binary of Node.js. It is recommended to *never* use it.

	2) Installing or upgrading plugins from the web ui invokes npm install
	globally, which is terrible opsec. It is recommended to instead package
	any plugins and make them available on the AUR.

	3) To give permissions to the web ui to poweroff/reboot the machine,
	create a drop-in file in /etc/sudoers.d similar to:

	homebridge ALL=(ALL) NOPASSWD:SETENV: /usr/bin/shutdown

	4) The web ui runs commands with sudo in various places.

	You have been warned.

	EOF
}

post_upgrade() {
	post_install
}