diff options
author | George Rawlinson | 2021-05-19 01:58:28 +0000 |
---|---|---|
committer | George Rawlinson | 2021-05-19 01:58:28 +0000 |
commit | 5c9dc5fdf8ef8f744e0af7d4ca165219461495fa (patch) | |
tree | 768f7ba415e1c4dd537e2465b9ff343f66d0fb13 /homebridge-config-ui-x.install | |
parent | e2961549d4e954d3e8cd4c2766042e68feaf37fb (diff) | |
download | aur-5c9dc5fdf8ef8f744e0af7d4ca165219461495fa.tar.gz |
upgpkg: homebridge-config-ui-x 4.41.1-2
* Fixed incorrect license.
* Removed unnecessary dependencies.
* Removed environment file in favour of environment variables in the
systemd service file.
* Added an install file with post_{install,upgrade} functions.
* Hardened systemd service.
* Removed login shell for homebridge user account.
Diffstat (limited to 'homebridge-config-ui-x.install')
-rw-r--r-- | homebridge-config-ui-x.install | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/homebridge-config-ui-x.install b/homebridge-config-ui-x.install new file mode 100644 index 000000000000..c90da78b4335 --- /dev/null +++ b/homebridge-config-ui-x.install @@ -0,0 +1,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 +} |