mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
remove custom node install in use-git admin as bookworm default is now v18
This commit is contained in:
parent
e8338eb754
commit
fbe8f38b5e
1 changed files with 0 additions and 18 deletions
18
ynh-dev
18
ynh-dev
|
@ -335,24 +335,6 @@ with open(setting_file) as f:
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Vite require node v14 to parse modern syntax
|
|
||||||
if [[ ! $(node -v) == v14* ]]
|
|
||||||
then
|
|
||||||
DISTRO="$(lsb_release -s -c)"
|
|
||||||
if [ "$DISTRO" == "buster" ]; then
|
|
||||||
info "Installing node v14..."
|
|
||||||
KEYRING=/usr/share/keyrings/nodesource.gpg
|
|
||||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
|
|
||||||
gpg --no-default-keyring --keyring "$KEYRING" --list-keys
|
|
||||||
VERSION=node_14.x
|
|
||||||
echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
|
||||||
fi
|
|
||||||
apt-get update
|
|
||||||
apt install nodejs -y
|
|
||||||
# to return to nodejs debian version
|
|
||||||
# apt purge nodejs && rm -r /etc/apt/sources.list.d/nodesource.list && apt install nodejs
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install dependencies with npm install (or rather npm ci)
|
# Install dependencies with npm install (or rather npm ci)
|
||||||
if [[ -e "/var/cache/ynh-dev/yunohost-admin/node_modules/vue" ]];
|
if [[ -e "/var/cache/ynh-dev/yunohost-admin/node_modules/vue" ]];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue