pmcf 2.6.0 → 2.6.1

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": "pmcf",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -262,8 +262,8 @@ async function generateZoneDefs(dns, location, packageData) {
262
262
 
263
263
  addHook(
264
264
  packageData.properties.hooks,
265
- "post_install",
266
- `rm /var/lib/named/${zone.file}.jnl`
265
+ "post_upgrade",
266
+ `rm -f /var/lib/named/${zone.file}.jnl`
267
267
  );
268
268
 
269
269
  const config = {
@@ -286,7 +286,7 @@ async function generateZoneDefs(dns, location, packageData) {
286
286
  if (configs.length > 0) {
287
287
  addHook(
288
288
  packageData.properties.hooks,
289
- "post_install",
289
+ "post_upgrade",
290
290
  "systemctl restart named"
291
291
  );
292
292
  }