dokku-compose 0.14.1 → 0.14.2

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/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1925,9 +1925,11 @@ async function ensurePostgresBackups(ctx, services, opts = {}) {
1925
1925
  }
1926
1926
  if (fields.has("backup.schedule")) {
1927
1927
  await ctx.run("postgres:backup-schedule", name, schedule, bucket);
1928
- const cronOutput = await ctx.query("postgres:backup-schedule-cat", name);
1929
- if (!parseBackupSchedule(cronOutput)) {
1930
- throw new Error(`Backup schedule for ${name} was not installed after backup-schedule ran`);
1928
+ if (!opts.dryRun) {
1929
+ const cronOutput = await ctx.query("postgres:backup-schedule-cat", name);
1930
+ if (!parseBackupSchedule(cronOutput)) {
1931
+ throw new Error(`Backup schedule for ${name} was not installed after backup-schedule ran`);
1932
+ }
1931
1933
  }
1932
1934
  } else if (fields.has("backup.bucket")) {
1933
1935
  await ctx.run("postgres:set", name, "backup-bucket", bucket);
@@ -2394,6 +2396,7 @@ async function runUpPhases(ctx, config, appFilter, opts) {
2394
2396
  if (config.postgres) {
2395
2397
  await ensurePostgresBackups(ctx, config.postgres, {
2396
2398
  prune: opts.prune,
2399
+ dryRun: opts.dryRun,
2397
2400
  dryRunCreated: opts.dryRun ? createdPostgres : void 0
2398
2401
  });
2399
2402
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dokku-compose",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Docker Compose for Dokku — declare your entire server in a single YAML file.",
5
5
  "main": "dist/index.js",
6
6
  "exports": "./dist/index.js",