restore: add skipDnsSetup flag

part of #737
This commit is contained in:
Girish Ramakrishnan
2021-02-24 14:56:09 -08:00
parent d74537868a
commit 5b51f73be4
4 changed files with 28 additions and 13 deletions

View File

@@ -72,14 +72,15 @@ function uninitialize(callback) {
], callback);
}
function onActivated(callback) {
function onActivated(options, callback) {
assert.strictEqual(options, 'object');
assert.strictEqual(typeof callback, 'function');
// Starting the platform after a user is available means:
// 1. mail bounces can now be sent to the cloudron owner
// 2. the restore code path can run without sudo (since mail/ is non-root)
async.series([
platform.start,
platform.start.bind(null, options),
cron.startJobs,
function checkBackupConfiguration(done) {
backups.checkConfiguration(function (error, message) {
@@ -147,7 +148,7 @@ function runStartupTasks() {
return reverseProxy.writeDefaultConfig({ activated: false }, callback);
}
onActivated(callback);
onActivated({}, callback);
});
}
];