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.
- package/dist/index.js +6 -3
- 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
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
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
|
}
|