zeus
4 years ago
1 changed files with 39 additions and 30 deletions
@ -1,44 +1,53 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
|
################################# |
||||
|
# set USERNAME # |
||||
|
################################# |
||||
|
|
||||
# ------------------------ |
USERNAME= |
||||
# install wireguard jq |
|
||||
# ------------------------ |
|
||||
|
|
||||
sudo apt update |
if [ -z "$USERNAME" ]; then |
||||
sudo apt install wireguard jq |
|
||||
|
|
||||
|
# ------------------------ |
||||
|
# install wireguard jq |
||||
|
# ------------------------ |
||||
|
|
||||
# ------------------------ |
sudo apt update |
||||
# install node version 15 |
sudo apt install wireguard jq |
||||
# ------------------------ |
|
||||
|
|
||||
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - |
|
||||
sudo apt-get install -y nodejs |
|
||||
|
|
||||
# ------------------------ |
# ------------------------ |
||||
# install docker |
# install node version 15 |
||||
# ------------------------ |
# ------------------------ |
||||
|
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - |
||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
sudo apt-get install -y nodejs |
||||
sudo apt update |
|
||||
sudo apt install -y docker-ce |
|
||||
sudo usermod -aG docker [USERNAME] |
|
||||
|
|
||||
# ------------------------ |
# ------------------------ |
||||
# install docker-compose |
# install docker |
||||
# ------------------------ |
# ------------------------ |
||||
|
|
||||
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
||||
sudo chmod +x /usr/local/bin/docker-compose |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
||||
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
sudo apt update |
||||
|
sudo apt install -y docker-ce |
||||
|
sudo usermod -aG docker $USERNAME |
||||
|
|
||||
# ------------------------ |
# ------------------------ |
||||
# install pm2 |
# install docker-compose |
||||
# ------------------------ |
# ------------------------ |
||||
|
|
||||
sudo npm install -g pm2 |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
||||
|
sudo chmod +x /usr/local/bin/docker-compose |
||||
|
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
||||
|
|
||||
echo "" |
# ------------------------ |
||||
echo "run ./install.sh" |
# install pm2 |
||||
|
# ------------------------ |
||||
|
|
||||
|
sudo npm install -g pm2 |
||||
|
|
||||
|
echo "" |
||||
|
echo "run ./install.sh" |
||||
|
|
||||
|
fi |
||||
|
Loading…
Reference in new issue