update sed command to set TOMCAT_PASSWORD

This commit is contained in:
Sameer Naik
2015-08-13 13:26:03 +05:30
parent f888cb7e2a
commit 39ba0ff825

View File

@@ -16,7 +16,7 @@ if [ ! "$(ls -A $BITNAMI_APP_VOL_PREFIX/conf)" ]; then
if [ "$TOMCAT_PASSWORD" ]; then
echo ""
echo "Setting manager password in tomcat-users.xml ..."
sed -i 's/username="manager" password=""/username="manager" password="'"$TOMCAT_PASSWORD"'"/' $BITNAMI_APP_VOL_PREFIX/conf/tomcat-users.xml
sed -i 's/^<user username="manager" password=""/username="manager" password="'"$TOMCAT_PASSWORD"'"/' $BITNAMI_APP_VOL_PREFIX/conf/tomcat-users.xml
print_app_credentials $BITNAMI_APP_NAME manager $TOMCAT_PASSWORD
fi
else