Refactor homebridge lxc install (#1401)

* simplify homebridge install
pull/1418/head
Samuel Burkhard 2023-05-07 21:01:15 +02:00 committed by GitHub
parent 6f2f334a81
commit 7cd2ca2970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 12 deletions

View File

@ -18,24 +18,19 @@ $STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y avahi-daemon
$STD apt-get install -y gnupg2
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_16.x)
msg_ok "Set up Node.js 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 "Setting up Homebridge Repository"
curl -sSf https://repo.homebridge.io/KEY.gpg | gpg --dearmor >/etc/apt/trusted.gpg.d/homebridge.gpg
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 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 "Creating Service"
$STD hb-service install --user homebridge
msg_ok "Created Service"
motd_ssh
root