Skip to content

Commit 92b1702

Browse files
authored
Refactor: Matterbridge (#4148)
1 parent 53ebd3c commit 92b1702

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

ct/matterbridge.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
msg_error "Update via the Matterbridge UI"
30+
$STD apt-get update
31+
$STD apt-get upgrade -y
32+
NODE_VERSION="22"
33+
NODE_MODULE="matterbridge"
34+
install_node_and_modules
3135
exit
3236
}
3337

@@ -38,4 +42,4 @@ description
3842
msg_ok "Completed Successfully!\n"
3943
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4044
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
41-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8283${CL}"
45+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8283${CL}"

frontend/public/json/matterbridge.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"date_created": "2024-06-12",
88
"type": "ct",
9-
"updateable": false,
9+
"updateable": true,
1010
"privileged": false,
1111
"interface_port": 8283,
1212
"documentation": null,
@@ -35,6 +35,10 @@
3535
{
3636
"text": "If the LXC is created Privileged, the script will automatically set up USB passthrough.",
3737
"type": "warning"
38+
},
39+
{
40+
"text": "Updatable via the Matterbridge WebUI",
41+
"type": "info"
3842
}
3943
]
4044
}

install/matterbridge-install.sh

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Copyright (c) 2021-2025 tteck
4-
# Author: tteck
5-
# Co-Author: MickLesk (Canbiz)
4+
# Author: MickLesk (Canbiz)
65
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
76
# Source: https://github.com/Luligu/matterbridge/
87

@@ -14,24 +13,11 @@ setting_up_container
1413
network_check
1514
update_os
1615

17-
msg_info "Installing Dependencies"
18-
$STD apt-get install -y gpg
19-
msg_ok "Installed Dependencies"
20-
21-
msg_info "Setting up Node.js Repository"
22-
mkdir -p /etc/apt/keyrings
23-
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
24-
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
25-
msg_ok "Set up Node.js Repository"
26-
27-
msg_info "Installing Node.js"
28-
$STD apt-get update
29-
$STD apt-get install -y nodejs
30-
msg_ok "Installed Node.js"
31-
3216
msg_info "Install Matterbridge"
3317
mkdir -p /root/Matterbridge
34-
$STD npm install -g matterbridge
18+
NODE_VERSION="22"
19+
NODE_MODULE="matterbridge"
20+
install_node_and_modules
3521
msg_ok "Installed Matterbridge"
3622

3723
msg_info "Creating Service"

0 commit comments

Comments
 (0)