Commit 80a916af authored by Fabio Luchetti's avatar Fabio Luchetti
Browse files

In ubuntu dockerfiles, use '=' operator in if conditionals instead of '=='

parent d0bb3b92
Pipeline #2734912 skipped with stage
......@@ -60,8 +60,8 @@ RUN curl -sL http://storage-ci.web.cern.ch/storage-ci/storageci.key | apt-key ad
&& echo "deb-src http://storage-ci.web.cern.ch/storage-ci/debian/xrootd bionic release" >> /etc/apt/sources.list \
&& add-apt-repository 'deb http://storage-ci.web.cern.ch/storage-ci/debian/xrootd bionic release' \
RUN if [ "${EOS_CODENAME}" == "diopside" ]; then export XRDVERSIONPIN=5.2.0; \
elif [ "${EOS_CODENAME}" == "citrine" ]; then export XRDVERSIONPIN=4.12.8; fi \
RUN if [ "${EOS_CODENAME}" = "diopside" ]; then export XRDVERSIONPIN=5.2.0; \
elif [ "${EOS_CODENAME}" = "citrine" ]; then export XRDVERSIONPIN=4.12.8; fi \
&& echo -e "Package: xrootd* libxrd* libxrootd*\nPin: version ${XRDVERSIONPIN}\nPin-Priority: 1000" > /etc/apt/preferences.d/xrootd.pref
......
......@@ -66,8 +66,8 @@ RUN curl -sL http://storage-ci.web.cern.ch/storage-ci/storageci.key | apt-key ad
&& echo "deb-src http://storage-ci.web.cern.ch/storage-ci/debian/xrootd focal release" >> /etc/apt/sources.list \
&& add-apt-repository 'deb http://storage-ci.web.cern.ch/storage-ci/debian/xrootd focal release'
RUN if [ "${EOS_CODENAME}" == "diopside" ]; then export XRDVERSIONPIN=5.2.0; \
elif [ "${EOS_CODENAME}" == "citrine" ]; then export XRDVERSIONPIN=4.12.8; fi \
RUN if [ "${EOS_CODENAME}" = "diopside" ]; then export XRDVERSIONPIN=5.2.0; \
elif [ "${EOS_CODENAME}" = "citrine" ]; then export XRDVERSIONPIN=4.12.8; fi \
&& echo -e "Package: xrootd* libxrd* libxrootd*\nPin: version ${XRDVERSIONPIN}\nPin-Priority: 1000" > /etc/apt/preferences.d/xrootd.pref
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment