@@ -18,6 +18,7 @@ USERNAME="${USERNAME:-"automatic"}"
1818USER_UID=" ${USERUID:- " automatic" } "
1919USER_GID=" ${USERGID:- " automatic" } "
2020ADD_NON_FREE_PACKAGES=" ${NONFREEPACKAGES:- " false" } "
21+ INSTALL_SSL=" ${INSTALLSSL:- " true" } "
2122
2223MARKER_FILE=" /usr/local/etc/vscode-dev-containers/common"
2324
@@ -75,25 +76,27 @@ install_debian_packages() {
7576 manpages-dev \
7677 init-system-helpers"
7778
78- # Include libssl1.1 if available
79- if [[ ! -z $( apt-cache --names-only search ^libssl1.1$) ]]; then
80- package_list=" ${package_list} libssl1.1"
81- fi
79+ if [ " ${INSTALL_SSL} " = " true" ]; then
80+ # Include libssl1.1 if available
81+ if [[ ! -z $( apt-cache --names-only search ^libssl1.1$) ]]; then
82+ package_list=" ${package_list} libssl1.1"
83+ fi
8284
83- # Include libssl3 if available
84- if [[ ! -z $( apt-cache --names-only search ^libssl3$) ]]; then
85- package_list=" ${package_list} libssl3"
86- fi
85+ # Include libssl3 if available
86+ if [[ ! -z $( apt-cache --names-only search ^libssl3$) ]]; then
87+ package_list=" ${package_list} libssl3"
88+ fi
8789
88- # Include appropriate version of libssl1.0.x if available
89- local libssl_package=$( dpkg-query -f ' ${db:Status-Abbrev}\t${binary:Package}\n' -W ' libssl1\.0\.?' 2>&1 || echo ' ' )
90- if [ " $( echo " $libssl_package " | grep -o ' libssl1\.0\.[0-9]:' | uniq | sort | wc -l) " -eq 0 ]; then
91- if [[ ! -z $( apt-cache --names-only search ^libssl1.0.2$) ]]; then
92- # Debian 9
93- package_list=" ${package_list} libssl1.0.2"
94- elif [[ ! -z $( apt-cache --names-only search ^libssl1.0.0$) ]]; then
95- # Ubuntu 18.04
96- package_list=" ${package_list} libssl1.0.0"
90+ # Include appropriate version of libssl1.0.x if available
91+ local libssl_package=$( dpkg-query -f ' ${db:Status-Abbrev}\t${binary:Package}\n' -W ' libssl1\.0\.?' 2>&1 || echo ' ' )
92+ if [ " $( echo " $libssl_package " | grep -o ' libssl1\.0\.[0-9]:' | uniq | sort | wc -l) " -eq 0 ]; then
93+ if [[ ! -z $( apt-cache --names-only search ^libssl1.0.2$) ]]; then
94+ # Debian 9
95+ package_list=" ${package_list} libssl1.0.2"
96+ elif [[ ! -z $( apt-cache --names-only search ^libssl1.0.0$) ]]; then
97+ # Ubuntu 18.04
98+ package_list=" ${package_list} libssl1.0.0"
99+ fi
97100 fi
98101 fi
99102
0 commit comments