homebridge-melcloud-control 4.5.6-beta.3 → 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 +15 -6
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.3",
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,12 +147,21 @@ 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- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/keyrings/google-chrome.gpg && sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' &&
154
- apt update -y &&
155
- apt install -y google-chrome-stable
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
156
165
  `);
157
166
  } catch (error) {
158
167
  if (this.logError) this.emit('error', `Chrome install error: ${error}`);