This commit includes the necessary scripts and configuration to deploy and verify Dolibarr using Docker.
16 lines
392 B
Bash
Executable File
16 lines
392 B
Bash
Executable File
#!/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 |