Browse Source

error bash

master
zeus 4 years ago
parent
commit
3f4a8baa46
  1. 11
      install/install-ubuntu.sh

11
install/install-ubuntu.sh

@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
#################################
# set USERNAME #
#################################
USERNAME=
if [ -z "$USERNAME" ]; then
# ------------------------ # ------------------------
# install wireguard jq # install wireguard jq
@ -24,7 +31,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update sudo apt update
sudo apt install -y docker-ce sudo apt install -y docker-ce
sudo usermod -aG docker [USERNAME] sudo usermod -aG docker $USERNAME
# ------------------------ # ------------------------
# install docker-compose # install docker-compose
@ -42,3 +49,5 @@ sudo npm install -g pm2
echo "" echo ""
echo "run ./install.sh" echo "run ./install.sh"
fi

Loading…
Cancel
Save