feat(dolibarr): deploy and verify dolibarr
This commit includes the necessary scripts and configuration to deploy and verify Dolibarr using Docker.
This commit is contained in:
@@ -1,2 +1,16 @@
|
||||
#!/bin/bash
|
||||
# Verify Dolibarr
|
||||
|
||||
echo "Waiting for Dolibarr to start..."
|
||||
sleep 60
|
||||
|
||||
echo "Pinging Dolibarr..."
|
||||
if curl -s http://172.31.0.2:80 | grep -q "Dolibarr"; then
|
||||
echo "Dolibarr verification successful."
|
||||
exit 0
|
||||
else
|
||||
echo "Dolibarr verification failed."
|
||||
echo "Dolibarr is not responding as expected. Here is the verbose output from curl:"
|
||||
curl -v http://172.31.0.2:80
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user