This commit is contained in:
Joao Patricio 2023-05-12 20:06:13 +01:00
parent 3ba4a5cfb5
commit 35f8911b1b

View File

@ -20,7 +20,9 @@ class CheckProxySettingsInSync
$container_name = 'coolify-proxy';
$output = instantRemoteProcess([
// Folder exists, in ~/projects/<folder-name>
'if [ -d "projects/'.$folder_name.'" ]; then echo "true"; else echo "false"; fi',
// Container of name <container-name> is running
<<<EOT
[[ "$(docker inspect -f '{{.State.Running}}' $container_name 2>/dev/null)" == "true" ]] && echo "true" || echo "false"
EOT,