]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
dashboard-cephadm-e2e: bump node version to 14 2047/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 16:04:17 +0000 (00:04 +0800)
committerKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 16:04:18 +0000 (00:04 +0800)
as node.js 12 is being deprecated. and the oldest node.js which is
packaged by https://github.com/nodesource is node.js 14. see
https://github.com/nodesource/distributions#debinstall

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
scripts/dashboard/install-cephadm-e2e-deps.sh

index 0380112daca8bd1b55028176dea3fddd36861f53..8d500794521ef45d97774129a306cd533517ccaa 100644 (file)
@@ -20,7 +20,7 @@ sudo apt update -y
 sudo apt install -y apt-transport-https ca-certificates curl gnupg lsb-release \
     openssh-server software-properties-common
 
-NODEJS_MAJOR_VERSION=12
+NODEJS_MAJOR_VERSION=14
 DISTRO="$(lsb_release -cs)"
 if [[ ! $(command -v node) || $(node --version | grep -oE "v([0-9])+" | cut -c 2-) < ${NODEJS_MAJOR_VERSION} ]]; then
     sudo add-apt-repository -y -r ppa:chris-lea/node.js