File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,16 @@ if [[ ! -z "$HTACCESS_DIRS" ]]; then
9393 touch $PACKAGE /$TYPE /robots.txt
9494 echo -e " User-agent: *\nDisallow: /$URL_DIR /$URL_VERSION " >> $PACKAGE /$TYPE /robots.txt
9595 done
96- echo ' redhat:$apr1$1HYe8rB6$6pa5OVd01quYUYl8ymyqK0' > commercial_package/commercial/.htpasswd
97- echo ' redhat:$apr1$1HYe8rB6$6pa5OVd01quYUYl8ymyqK0' > community_package/community/.htpasswd
96+
97+ # brute force separate password for container-platform-ocp distribution
98+ if [ $dir = " commercial_package/commercial/container-platform-ocp/4.3" ]; then
99+ echo " ---> separate .htpasswd protection to $dir "
100+ echo ' openshift:$apr1$c41fpuxh$jHe/W0gYLffn6501Cx2TS/' > commercial_package/commercial/container-platform-ocp/.htpasswd
101+ else
102+ echo ' redhat:$apr1$1HYe8rB6$6pa5OVd01quYUYl8ymyqK0' > commercial_package/commercial/.htpasswd
103+ echo ' redhat:$apr1$1HYe8rB6$6pa5OVd01quYUYl8ymyqK0' > community_package/community/.htpasswd
104+ fi
105+
98106fi
99107
100108# Optionally restrict crawlers from indexing the content
You can’t perform that action at this time.
0 commit comments