cloudron-support: add ssh keys like support.js

This commit is contained in:
Girish Ramakrishnan
2019-05-21 09:44:58 -07:00
parent cc17c6b2cd
commit e7eac003a9
2 changed files with 33 additions and 25 deletions
+1
View File
@@ -14,6 +14,7 @@ let assert = require('assert'),
path = require('path'),
util = require('util');
// the logic here is also used in the cloudron-support tool
var AUTHORIZED_KEYS_FILEPATH = config.TEST ? path.join(config.baseDir(), 'authorized_keys') : ((config.provider() === 'ec2' || config.provider() === 'lightsail' || config.provider() === 'ami') ? '/home/ubuntu/.ssh/authorized_keys' : '/root/.ssh/authorized_keys'),
AUTHORIZED_KEYS_USER = config.TEST ? process.getuid() : ((config.provider() === 'ec2' || config.provider() === 'lightsail' || config.provider() === 'ami') ? 'ubuntu' : 'root'),
AUTHORIZED_KEYS_CMD = path.join(__dirname, 'scripts/remotesupport.sh');