Skip to content

Commit 07ff8ee

Browse files
Merge pull request #20221 from vikram-redhat/master
test separate password
2 parents 98575b9 + 9ad1016 commit 07ff8ee

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.s2i/bin/assemble

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
98106
fi
99107

100108
# Optionally restrict crawlers from indexing the content

0 commit comments

Comments
 (0)