fix: do not error if proxy is not running

This commit is contained in:
Andras Bacsai
2022-03-04 14:20:20 +01:00
parent 684b8e0914
commit 8ae61c8f78
3 changed files with 13 additions and 3 deletions

View File

@@ -112,9 +112,15 @@ export async function haproxyInstance() {
}
export async function configureHAProxy() {
const haproxy = await haproxyInstance();
try {
const haproxy = await haproxyInstance();
await checkHAProxy(haproxy);
} catch (error) {
return 'Error: HAProxy is not running';
}
try {
const data = {
applications: [],
services: [],