homebridge-melcloud-control 4.5.6-beta.2 → 4.5.6-beta.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/functions.js +16 -8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.5.6-beta.2",
4
+ "version": "4.5.6-beta.4",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/functions.js CHANGED
@@ -147,14 +147,22 @@ class Functions extends EventEmitter {
147
147
  if (isDocker) {
148
148
  try {
149
149
  await execPromise(`
150
- apt update -y &&
151
- apt install -y wget gnupg ca-certificates &&
152
- mkdir -p /etc/apt/keyrings &&
153
- wget -qO /etc/apt/keyrings/google.gpg https://dl.google.com/linux/linux_signing_key.pub &&
154
- sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' &&
155
- apt update -y &&
156
- apt install -y google-chrome-stable
157
- `);
150
+ apt update -y &&
151
+ apt install -y wget gnupg ca-certificates &&
152
+ mkdir -p /etc/apt/keyrings &&
153
+
154
+ wget -qO- https://dl.google.com/linux/linux_signing_key.pub \
155
+ | gpg --dearmor \
156
+ | tee /etc/apt/keyrings/google-chrome.gpg > /dev/null &&
157
+
158
+ chmod 644 /etc/apt/keyrings/google-chrome.gpg &&
159
+
160
+ echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] https://dl.google.com/linux/chrome/deb/ stable main" \
161
+ > /etc/apt/sources.list.d/google-chrome.list &&
162
+
163
+ apt update -y &&
164
+ apt install -y google-chrome-stable
165
+ `);
158
166
  } catch (error) {
159
167
  if (this.logError) this.emit('error', `Chrome install error: ${error}`);
160
168
  return { path: null, arch, system: 'Linux Docker' };