fix: proxy UI

This commit is contained in:
Andras Bacsai
2023-07-28 14:44:26 +02:00
parent 6aa6f4c8a2
commit 5b6406d09d
10 changed files with 52 additions and 113 deletions

View File

@@ -50,13 +50,15 @@ class StartProxy
"echo 'Creating Docker Compose file...'",
"echo 'Pulling docker image...'",
'docker compose pull -q',
"echo 'Stopping old proxy...'",
"echo 'Stopping existing proxy...'",
'docker compose down -v --remove-orphans',
"echo 'Starting new proxy...'",
"lsof -nt -i:80 | xargs -r kill -9",
"lsof -nt -i:443 | xargs -r kill -9",
"echo 'Starting proxy...'",
'docker compose up -d --remove-orphans',
"echo 'Proxy installed successfully...'"
], $server);
return $activity;
}
}
}