Do not automatically reboot the server but do this in a controlled fashion
Rebooting the server while connected via ssh often makes ssh return an error code
This commit is contained in:
parent
baf8b57a20
commit
d2072209b5
@ -159,11 +159,13 @@ describe('Selfhost DigitalOcean with filesystem backend', function () {
|
|||||||
assert.strictEqual(out.status, 0);
|
assert.strictEqual(out.status, 0);
|
||||||
|
|
||||||
console.log('run cloudron-setup');
|
console.log('run cloudron-setup');
|
||||||
out = machine('ssh ' + params.concat(['"./cloudron-setup --provider digitalocean --prerelease --version ' + toVersion + ' --env staging"']).join(' '));//, { stdout: process.stdout, stderr: process.stderr });
|
out = machine('ssh ' + params.concat(['"./cloudron-setup --provider digitalocean --prerelease --version ' + toVersion + ' --env staging --skip-reboot"']).join(' '));
|
||||||
console.log(out.stdout, out.stderr);
|
console.log(out.stdout, out.stderr);
|
||||||
|
assert.strictEqual(out.status, 0);
|
||||||
|
|
||||||
// due to the reboot, we might get a non 0 status code
|
console.log('reboot the server');
|
||||||
assert(out.status === 0 || out.stdout.indexOf('Rebooting this server now to let bootloader changes take effect.') !== -1);
|
out = machine('ssh ' + params.concat(['systemctl reboot']).join(' '));
|
||||||
|
console.log(out.stdout, out.stderr);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can setup dns', function () {
|
it('can setup dns', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user