update
This commit is contained in:
parent
5220958c0a
commit
23803bf880
2 changed files with 7 additions and 15 deletions
|
@ -7,6 +7,7 @@ base_package_upgrade(){
|
||||||
}
|
}
|
||||||
|
|
||||||
install_package_dependency(){
|
install_package_dependency(){
|
||||||
|
apt update
|
||||||
apt-get install -y --no-install-recommends ${PACKAGE_DEPENDENCY}
|
apt-get install -y --no-install-recommends ${PACKAGE_DEPENDENCY}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,16 +29,11 @@ configure_depot_yarn() {
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_depot_nodejs() {
|
configure_depot_nodejs() {
|
||||||
NODE_VERSION=16
|
NODE_MAJOR=16
|
||||||
[ ! "$1" == "" ] && NODE_VERSION=$1
|
[ ! "$1" == "" ] && NODE_MAJOR=$1
|
||||||
DEB_FILE=/etc/apt/sources.list.d/nodesource.list
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
|
||||||
XNODE_VERSION=${NODE_VERSION}.x
|
wget -qO - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
if [ -e ${DEB_FILE} ] && [ $(grep -c ${XNODE_VERSION} ${DEB_FILE}) -ne 0 ]
|
echo -e "Package: nodejs\\nPin: version $NODE_MAJOR.*\\nPin-Priority: 1000" > /etc/apt/preferences.d/nodejs
|
||||||
then
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash
|
|
||||||
fi
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash
|
|
||||||
echo -e "Package: nodejs\\nPin: version ${NODE_VERSION}.*\\nPin-Priority: 1000" > /etc/apt/preferences.d/nodejs
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_go() {
|
install_go() {
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
<<<<<<< HEAD
|
VERSION=1.33.0
|
||||||
VERSION=1.32.1
|
|
||||||
=======
|
|
||||||
VERSION=1.31.2
|
|
||||||
>>>>>>> parent of 0925d5a (Suivi de version)
|
|
||||||
APP=zigbee2mqtt
|
APP=zigbee2mqtt
|
||||||
DEPOT=https://github.com/Koenkk/zigbee2mqtt.git
|
DEPOT=https://github.com/Koenkk/zigbee2mqtt.git
|
||||||
GIT_VERSION=${VERSION}
|
GIT_VERSION=${VERSION}
|
||||||
|
|
Loading…
Reference in a new issue