fix: Haproxy errors

This commit is contained in:
Andras Bacsai
2022-04-01 00:07:29 +02:00
parent 726fbbb52a
commit f6a91cb53c
4 changed files with 3 additions and 13 deletions

View File

@@ -138,12 +138,7 @@ export async function haproxyInstance() {
export async function configureHAProxy() {
const haproxy = await haproxyInstance();
try {
await checkHAProxy(haproxy);
} catch (error) {
return 'Error: HAProxy is not running';
}
await checkHAProxy(haproxy);
try {
const data = {