A quick way to login and validate AEM or CQ.
Last active
August 29, 2015 14:14
-
-
Save toodooleedoo/cf19e30147569587a1d3 to your computer and use it in GitHub Desktop.
#AEM #CQ #LINUX Validate Application Running + Login Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if $(ps aux |grep -E "([a]uthor -jar|[p]ublish -jar)" >/dev/null) ; then | |
echo "AEM Process is running"; | |
else | |
echo "AEM Process is not running"; | |
exit; | |
fi | |
if $(curl --silent "http://localhost:4502/libs/granite/core/content/login.html" |grep "QUICKSTART_HOMEPAGE" >/dev/null); then | |
echo "Server is running."; | |
else | |
echo "Server is running but validation failed"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment