mirror of
https://github.com/bitnami/containers.git
synced 2026-03-14 14:58:01 +08:00
[bitnami/tomcat] Only enable remote management on default webapps if default webapps are installed (#31969). (#31970)
Signed-off-by: Martin Kanters <mkanters93@gmail.com>
This commit is contained in:
@@ -201,19 +201,19 @@ EOF
|
|||||||
if is_boolean_yes "$TOMCAT_INSTALL_DEFAULT_WEBAPPS"; then
|
if is_boolean_yes "$TOMCAT_INSTALL_DEFAULT_WEBAPPS"; then
|
||||||
info "Deploying Tomcat from scratch"
|
info "Deploying Tomcat from scratch"
|
||||||
cp -rp "$TOMCAT_BASE_DIR"/webapps_default/* "$TOMCAT_WEBAPPS_DIR"
|
cp -rp "$TOMCAT_BASE_DIR"/webapps_default/* "$TOMCAT_WEBAPPS_DIR"
|
||||||
|
|
||||||
|
# These applications have been enabled for historical reasons, and do not pose any security threat
|
||||||
|
tomcat_enable_application examples
|
||||||
|
tomcat_enable_application docs
|
||||||
|
if is_boolean_yes "$TOMCAT_ALLOW_REMOTE_MANAGEMENT"; then
|
||||||
|
# These applications should not be enabled by default, for security reasons
|
||||||
|
info "Enabling remote connections for manager and host-manager applications"
|
||||||
|
tomcat_enable_application manager
|
||||||
|
tomcat_enable_application host-manager
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
info "Skipping deployment of default webapps"
|
info "Skipping deployment of default webapps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# These applications have been enabled for historical reasons, and do not pose any security threat
|
|
||||||
tomcat_enable_application examples
|
|
||||||
tomcat_enable_application docs
|
|
||||||
if is_boolean_yes "$TOMCAT_ALLOW_REMOTE_MANAGEMENT"; then
|
|
||||||
# These applications should not be enabled by default, for security reasons
|
|
||||||
info "Enabling remote connections for manager and host-manager applications"
|
|
||||||
tomcat_enable_application manager
|
|
||||||
tomcat_enable_application host-manager
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -201,19 +201,19 @@ EOF
|
|||||||
if is_boolean_yes "$TOMCAT_INSTALL_DEFAULT_WEBAPPS"; then
|
if is_boolean_yes "$TOMCAT_INSTALL_DEFAULT_WEBAPPS"; then
|
||||||
info "Deploying Tomcat from scratch"
|
info "Deploying Tomcat from scratch"
|
||||||
cp -rp "$TOMCAT_BASE_DIR"/webapps_default/* "$TOMCAT_WEBAPPS_DIR"
|
cp -rp "$TOMCAT_BASE_DIR"/webapps_default/* "$TOMCAT_WEBAPPS_DIR"
|
||||||
|
|
||||||
|
# These applications have been enabled for historical reasons, and do not pose any security threat
|
||||||
|
tomcat_enable_application examples
|
||||||
|
tomcat_enable_application docs
|
||||||
|
if is_boolean_yes "$TOMCAT_ALLOW_REMOTE_MANAGEMENT"; then
|
||||||
|
# These applications should not be enabled by default, for security reasons
|
||||||
|
info "Enabling remote connections for manager and host-manager applications"
|
||||||
|
tomcat_enable_application manager
|
||||||
|
tomcat_enable_application host-manager
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
info "Skipping deployment of default webapps"
|
info "Skipping deployment of default webapps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# These applications have been enabled for historical reasons, and do not pose any security threat
|
|
||||||
tomcat_enable_application examples
|
|
||||||
tomcat_enable_application docs
|
|
||||||
if is_boolean_yes "$TOMCAT_ALLOW_REMOTE_MANAGEMENT"; then
|
|
||||||
# These applications should not be enabled by default, for security reasons
|
|
||||||
info "Enabling remote connections for manager and host-manager applications"
|
|
||||||
tomcat_enable_application manager
|
|
||||||
tomcat_enable_application host-manager
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -201,19 +201,19 @@ EOF
|
|||||||
if is_boolean_yes "$TOMCAT_INSTALL_DEFAULT_WEBAPPS"; then
|
if is_boolean_yes "$TOMCAT_INSTALL_DEFAULT_WEBAPPS"; then
|
||||||
info "Deploying Tomcat from scratch"
|
info "Deploying Tomcat from scratch"
|
||||||
cp -rp "$TOMCAT_BASE_DIR"/webapps_default/* "$TOMCAT_WEBAPPS_DIR"
|
cp -rp "$TOMCAT_BASE_DIR"/webapps_default/* "$TOMCAT_WEBAPPS_DIR"
|
||||||
|
|
||||||
|
# These applications have been enabled for historical reasons, and do not pose any security threat
|
||||||
|
tomcat_enable_application examples
|
||||||
|
tomcat_enable_application docs
|
||||||
|
if is_boolean_yes "$TOMCAT_ALLOW_REMOTE_MANAGEMENT"; then
|
||||||
|
# These applications should not be enabled by default, for security reasons
|
||||||
|
info "Enabling remote connections for manager and host-manager applications"
|
||||||
|
tomcat_enable_application manager
|
||||||
|
tomcat_enable_application host-manager
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
info "Skipping deployment of default webapps"
|
info "Skipping deployment of default webapps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# These applications have been enabled for historical reasons, and do not pose any security threat
|
|
||||||
tomcat_enable_application examples
|
|
||||||
tomcat_enable_application docs
|
|
||||||
if is_boolean_yes "$TOMCAT_ALLOW_REMOTE_MANAGEMENT"; then
|
|
||||||
# These applications should not be enabled by default, for security reasons
|
|
||||||
info "Enabling remote connections for manager and host-manager applications"
|
|
||||||
tomcat_enable_application manager
|
|
||||||
tomcat_enable_application host-manager
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user