support: set filePath when user is root

This commit is contained in:
Girish Ramakrishnan
2021-11-01 12:20:47 -07:00
parent b69c5f62c0
commit 7b5ed0b2a1

View File

@@ -29,6 +29,7 @@ function sshInfo() {
filePath = '/home/ubuntu/.ssh/authorized_keys';
user = 'ubuntu';
} else {
filePath = '/root/.ssh/authorized_keys';
user = 'root';
}