mf-hosting 2.9.9 → 2.9.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mf-hosting",
3
- "version": "2.9.9",
3
+ "version": "2.9.11",
4
4
  "files": [
5
5
  ".releaserc.json",
6
6
  "pkg/hooks.sh",
package/pkg/hooks.sh CHANGED
@@ -9,11 +9,11 @@ post_install() {
9
9
  post_upgrade() {
10
10
  systemctl is-active {{name}} >/dev/null
11
11
  ACTIVE=$?
12
- if [ $ACTIVE -eq 0 ]
12
+ if [[ $ACTIVE -eq 0 ]]
13
13
  then
14
14
  systemctl daemon-reload
15
- systemctl restart {{name}}.socket
16
15
  systemctl restart {{name}}
16
+ systemctl restart {{name}}.socket
17
17
  fi
18
18
  }
19
19
 
package/pkg/nginx.conf CHANGED
@@ -3,7 +3,6 @@ location {{http.path}} {
3
3
  proxy_set_header X-Real-IP $remote_addr;
4
4
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
5
5
  proxy_set_header Host $http_host;
6
- proxy_set_header X-NginX-Proxy true;
7
6
  proxy_set_header Upgrade $http_upgrade;
8
7
  proxy_set_header Connection "upgrade";
9
8
  proxy_pass http://unix:{{socket.http}};