Fix provider usage

* do not send to appstore anymore
* do not set in getStatus/getConfig
* provider is not needed when registering cloudron
This commit is contained in:
Girish Ramakrishnan
2020-06-25 11:07:49 -07:00
parent 85f67c13da
commit 215aa65d5a
6 changed files with 5 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ let assert = require('assert'),
once = require('once'),
path = require('path'),
paths = require('./paths.js'),
settings = require('./settings.js'),
safe = require('safetydance'),
shell = require('./shell.js');
// the logic here is also used in the cloudron-support tool
@@ -24,7 +24,7 @@ function sshInfo() {
if (constants.TEST) {
filePath = path.join(paths.baseDir(), 'authorized_keys');
user = process.getuid();
} else if (settings.provider() === 'ec2' || settings.provider() === 'lightsail' || settings.provider() === 'ami') {
} else if (safe.fs.existsSync('/home/ubuntu')) { // yellowtent user won't have access to anything deeper
filePath = '/home/ubuntu/.ssh/authorized_keys';
user = 'ubuntu';
} else {