simplify homebridge setup

pull/1401/head
samydoesit 2 years ago
parent 94d20803d4
commit ec5b2c021e
  1. 19
      install/homebridge-install.sh

@ -18,24 +18,19 @@ $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y avahi-daemon $STD apt-get install -y avahi-daemon
$STD apt-get install -y gnupg2
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository" msg_info "Setting up Homebridge Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x) curl -sSf https://repo.homebridge.io/KEY.gpg | gpg --dearmor >/etc/apt/trusted.gpg.d/homebridge.gpg
msg_ok "Set up Node.js Repository" echo 'deb [signed-by=/etc/apt/trusted.gpg.d/homebridge.gpg] https://repo.homebridge.io stable main' >/etc/apt/sources.list.d/homebridge.list
msg_ok "Set up Homebridge Repository"
msg_info "Installing Node.js"
$STD apt-get install -y nodejs gcc g++ make python net-tools
msg_ok "Installed Node.js"
msg_info "Installing Homebridge" msg_info "Installing Homebridge"
$STD npm install -g --unsafe-perm homebridge homebridge-config-ui-x $STD apt update
$STD apt-get install -y homebridge
msg_info "Installed Homebridge" msg_info "Installed Homebridge"
msg_info "Creating Service"
$STD hb-service install --user homebridge
msg_ok "Created Service"
motd_ssh motd_ssh
root root

Loading…
Cancel
Save