mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
display infos if initial status is offline
This commit is contained in:
parent
88f0926d2a
commit
0a1a9beff9
@ -173,6 +173,16 @@ detect_installation()
|
|||||||
then
|
then
|
||||||
STATUS=$(test_running)
|
STATUS=$(test_running)
|
||||||
echo "$STATUS"
|
echo "$STATUS"
|
||||||
|
if [ "$STATUS" = "OFFLINE" ]
|
||||||
|
then
|
||||||
|
echo "Your ElasticSearch instance is offline. Please check the logs and verify that no problems prevent the upgrade..."
|
||||||
|
if [ "$TYPE" = "CLASSIC" ];
|
||||||
|
then
|
||||||
|
echo "Note: You can use \`sudo journalctl -u elasticsearch.service\` or \`vi /var/log/elasticsearch/elasticsearch.log.$\(date --rfc-3339=date\)\` to view the logs, depending on your installation";
|
||||||
|
else
|
||||||
|
echo "Note: You can use \`docker logs \$instance-name\` to view the logs";
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user