update
This commit is contained in:
parent
a31db48ad0
commit
4aa8111f98
10 changed files with 20 additions and 17 deletions
|
@ -29,12 +29,12 @@ configure_depot_yarn() {
|
|||
}
|
||||
|
||||
configure_depot_nodejs() {
|
||||
NODE_MAJOR=16
|
||||
NODE_MAJOR=18
|
||||
[ ! "$1" == "" ] && NODE_MAJOR=$1
|
||||
|
||||
echo -e "Package: nodejs\\nPin: version $NODE_MAJOR.*\\nPin-Priority: 1000" > /etc/apt/preferences.d/nodejs
|
||||
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
|
||||
[ -f /etc/apt/keyrings/nodesource.gpg ] || wget -qO - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||
echo "deb https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
|
||||
[ -f /etc/apt/trusted.gpg.d/nodesource.gpg ] || wget -qO - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/nodesource.gpg
|
||||
}
|
||||
|
||||
install_go() {
|
||||
|
@ -58,10 +58,10 @@ install_clojure() {
|
|||
}
|
||||
|
||||
install_composer(){
|
||||
wget https://getcomposer.org/installer -O /tmp/installer
|
||||
php /tmp/installer
|
||||
php composer-setup.php --install-dir=/usr/bin
|
||||
rm /tmp/installer
|
||||
wget https://getcomposer.org/installer -O /tmp/composer-setup.php
|
||||
php /tmp/composer-setup.php --install-dir=/usr/bin
|
||||
rm /tmp/composer-setup.php
|
||||
mv /usr/bin/composer.phar /usr/bin/composer
|
||||
}
|
||||
|
||||
minimum_package() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue