Apparently runElevated is not needed

This commit is contained in:
2026-05-31 22:12:42 -05:00
parent 6784d1c9c4
commit 1b38554df0
+3 -2
View File
@@ -30,6 +30,7 @@ export class NetBirdClient {
});
}
/// Deprecated???
runElevated(args: string[]): Promise<Omit<CommandResult, 'code'>> {
const quotedExe = this.executablePath.replace(/'/g, "''");
const quotedArgs = args.map(arg => `'${String(arg).replace(/'/g, "''")}'`).join(',');
@@ -67,7 +68,7 @@ export class NetBirdClient {
if (status.ok) return true;
await this.runElevated([
await this.run([
'service',
'install',
'--management-url',
@@ -78,7 +79,7 @@ export class NetBirdClient {
'info'
]);
await this.runElevated(['service', 'start']);
await this.run(['service', 'start']);
for (let index = 0; index < 20; index++) {
const check = await this.status({ timeout: 8000 });