matterbridge 3.3.7-dev-20251108-f254812 → 3.3.7-dev-20251109-a306ab9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -28,7 +28,7 @@ Advantages:
28
28
  - individual plugin isolation in childbridge mode;
29
29
  - ability to update the plugin in childbridge mode without restarting matterbridge;
30
30
 
31
- ## [3.3.7] - 2025-11-07
31
+ ## [3.3.7] - 2025-11-08
32
32
 
33
33
  ### Breaking Changes
34
34
 
@@ -37,7 +37,7 @@ Advantages:
37
37
  ### Added
38
38
 
39
39
  - [matterbridge]: Added a first check for plugin existence (docker pull or Hass add-on rebuild) and reinstall it before parsing the plugin. The error messages have been removed.
40
- - [service]: Added [configuration](README-SERVICE-OPT.md) to run matterbridge as a daemon with systemctl (Linux only) and with private global node_modules (user matterbridge and no sudo required).
40
+ - [service]: Added [configuration](README-SERVICE-OPT.md) to run matterbridge as a daemon with systemctl (Linux only), private global node_modules, user/group matterbridge and no sudo required.
41
41
 
42
42
  ### Changed
43
43
 
@@ -20,14 +20,16 @@
20
20
 
21
21
  The advantage of this setup is that the global node_modules are private for matterbridge and sudo is not required.
22
22
 
23
- The service runs with user matterbridge and the system has full protection.
23
+ The service runs with group and user matterbridge and the system has full protection.
24
24
 
25
25
  The storage position is **not compatible** with the traditional setup (~/Matterbridge ~/.matterbridge ~/.mattercert).
26
26
 
27
27
  ### 1 - Create the matterbridge user and group
28
28
 
29
29
  ```bash
30
+ # ✅ Create the matterbridge group
30
31
  sudo groupadd --system matterbridge 2>/dev/null || true
32
+ # ✅ Create the matterbridge user
31
33
  sudo useradd --system \
32
34
  --home-dir /opt/matterbridge \
33
35
  --shell /usr/sbin/nologin \
@@ -42,10 +44,10 @@ This will create the required directories if they don't exist
42
44
  ```bash
43
45
  cd ~
44
46
  # ✅ Safe precaution if matterbridge was already running with the traditional setup
45
- sudo systemctl stop matterbridge
46
- # ✅ We need to uninstall from the global node_modules
47
- sudo npm uninstall matterbridge -g
48
- # ✅ Creates all needed dirs
47
+ sudo systemctl stop matterbridge 2>/dev/null || true
48
+ # ✅ Safe precaution we need to uninstall from the global node_modules
49
+ sudo npm uninstall matterbridge -g 2>/dev/null || true
50
+ # ✅ Creates all required directories
49
51
  sudo mkdir -p /opt/matterbridge /opt/matterbridge/Matterbridge /opt/matterbridge/.matterbridge /opt/matterbridge/.mattercert /opt/matterbridge/.npm-global
50
52
  # ✅ Ensures ownership
51
53
  sudo chown -R matterbridge:matterbridge /opt/matterbridge /opt/matterbridge/Matterbridge /opt/matterbridge/.matterbridge /opt/matterbridge/.mattercert /opt/matterbridge/.npm-global
@@ -55,7 +57,7 @@ sudo chmod -R 755 /opt/matterbridge /opt/matterbridge/Matterbridge /opt/matterbr
55
57
  sudo -u matterbridge mkdir -p /opt/matterbridge/.npm-global/bin
56
58
  # ✅ Install matterbridge in the private global node_modules
57
59
  sudo -u matterbridge NPM_CONFIG_PREFIX=/opt/matterbridge/.npm-global npm install matterbridge --omit=dev --verbose --global
58
- # ✅ Create a link to matterbridge bin
60
+ # ✅ Create a link to matterbridge bins
59
61
  sudo ln -sf /opt/matterbridge/.npm-global/bin/matterbridge /usr/bin/matterbridge
60
62
  sudo ln -sf /opt/matterbridge/.npm-global/bin/mb_mdns /usr/bin/mb_mdns
61
63
  sudo ln -sf /opt/matterbridge/.npm-global/bin/mb_coap /usr/bin/mb_coap
@@ -69,7 +71,21 @@ matterbridge --version
69
71
 
70
72
  The storage position is **not compatible** with the traditional setup (~/Matterbridge ~/.matterbridge ~/.mattercert).
71
73
 
72
- You may want to copy the contents to the new directories.
74
+ If you are migrating from the traditional service setup, before removing the old diretories, you may want to copy the contents of ~/Matterbridge ~/.matterbridge ~/.mattercert to the new directories /opt/matterbridge/Matterbridge /opt/matterbridge/.matterbridge /opt/matterbridge/.mattercert.
75
+
76
+ Copy the old diretories content
77
+
78
+ ```bash
79
+ sudo cp -a ~/Matterbridge/. /opt/matterbridge/Matterbridge/
80
+ sudo cp -a ~/.matterbridge/. /opt/matterbridge/.matterbridge/
81
+ sudo cp -a ~/.mattercert/. /opt/matterbridge/.mattercert/
82
+ ```
83
+
84
+ Remove the old diretories
85
+
86
+ ```bash
87
+ sudo rm -rf ~/Matterbridge ~/.matterbridge ~/.mattercert ~/.npm-global
88
+ ```
73
89
 
74
90
  ### 3 - Create a systemctl configuration file for Matterbridge
75
91
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.3.7-dev-20251108-f254812",
3
+ "version": "3.3.7-dev-20251109-a306ab9",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge",
9
- "version": "3.3.7-dev-20251108-f254812",
9
+ "version": "3.3.7-dev-20251109-a306ab9",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@matter/main": "0.15.6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.3.7-dev-20251108-f254812",
3
+ "version": "3.3.7-dev-20251109-a306ab9",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",