mf-hosting 2.9.1 → 2.9.3

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 +5 -5
  2. package/pkg/hooks.sh +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mf-hosting",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "files": [
5
5
  ".releaserc.json",
6
6
  "pkg/hooks.sh",
@@ -20,9 +20,9 @@
20
20
  "devDependencies": {
21
21
  "@semantic-release/commit-analyzer": "^13.0.1",
22
22
  "@semantic-release/exec": "^7.1.0",
23
- "@semantic-release/github": "^12.0.0",
23
+ "@semantic-release/github": "^12.0.2",
24
24
  "@semantic-release/release-notes-generator": "^14.1.0",
25
- "semantic-release": "^25.0.1"
25
+ "semantic-release": "^25.0.2"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
@@ -46,8 +46,8 @@
46
46
  "aarch64"
47
47
  ],
48
48
  "dependencies": {
49
- "systemd": ">=258.1",
50
- "nginx-mainline": ">=1.29.2"
49
+ "systemd": ">=258.2",
50
+ "nginx-mainline": ">=1.29.3"
51
51
  },
52
52
  "content": {
53
53
  "${nginx.locations.dir}${nginx.location.category}/${name}.conf": "pkg/nginx.conf",
package/pkg/hooks.sh CHANGED
@@ -6,13 +6,15 @@ post_install() {
6
6
  systemctl start {{name}}.socket
7
7
  }
8
8
 
9
- pre_upgrade() {
10
- systemctl stop {{name}}
11
- }
12
-
13
9
  post_upgrade() {
14
- systemctl daemon-reload
15
- systemctl restart {{name}}.socket
10
+ systemctl is-active {{name}} >/dev/null
11
+ ACTIVE=$?
12
+ if [ $ACTIVE -eq 0 ]
13
+ then
14
+ systemctl daemon-reload
15
+ systemctl restart {{name}}.socket
16
+ systemctl restart {{name}}
17
+ fi
16
18
  }
17
19
 
18
20
  pre_remove() {