add uptime-kuma
This commit is contained in:
parent
c42003ad1b
commit
8c08708c5b
11 changed files with 83 additions and 11 deletions
|
@ -31,13 +31,14 @@ configure_depot_yarn() {
|
|||
configure_depot_nodejs() {
|
||||
NODE_MAJOR=16
|
||||
[ ! "$1" == "" ] && NODE_MAJOR=$1
|
||||
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
|
||||
wget -qO - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
install_go() {
|
||||
GO_VERSION=1.20.7
|
||||
GO_VERSION=1.21.1
|
||||
[ ! "$1" == "" ] && GO_VERSION=$1
|
||||
PATH=$PATH:/usr/local/go/bin
|
||||
if [ -e /usr/local/go/bin/go ] || [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue