Commit 876d298e authored by Cédric BRINER's avatar Cédric BRINER Committed by Cédric BRINER
Browse files

minor bug

parent acab9ffe
......@@ -1347,10 +1347,10 @@ EOF
sscp "tomcat7 manager.xml" /etc/tomcat7/Catalina/localhost/manager.xml root@${h}:/etc/tomcat7/Catalina/localhost/manager.xml
# check that tomcat7 user is in group ssl-cert
pb "Does tomcat7 is un group ssl-cert:"
if ssh root@${h} "id tomcat7|grep -Fb ssl-cert"; then
if ssh root@${h} "id tomcat7|grep -qFb ssl-cert"; then
pg "Yes !" | indent 3
else:
if ssh root@{h} "- adduser tomcat7 ssl-cert" | indent 3; then
else
if ssh root@{h} "adduser tomcat7 ssl-cert" | indent 3; then
pg "Done !" | indent 6
else
pr "- Unable to adduser tomcat7 in group ssl-cert witch cmd (adduser tomcat7 ssl-cert)" | indent 6
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment