Move VPN provisioning onto router model

This commit is contained in:
litoral05
2026-05-07 16:05:32 +01:00
parent 66adf1b42b
commit fe2faa4784
11 changed files with 268 additions and 10 deletions
@@ -79,4 +79,18 @@ public class WireGuardVpsService {
return result.stdout();
}
public String restoreLastWireGuardBackup() {
SshCommandResult result = sshService.executeOnConfiguredVps(
"sudo /usr/local/sbin/lr-wg-restore-last-backup"
);
if (result.exitCode() != 0) {
throw new SshCommandException(
"Failed to restore WireGuard backup: " + result.stderr()
);
}
return result.stdout();
}
}