Unverified Commit 82031aed authored by Ahmad Nemati's avatar Ahmad Nemati Committed by GitHub

Update install.sh

parent dcda9e20
#!/bin/sh #!/bin/sh
apt-get update
apt install -y git curl build-essential libssl-dev zlib1g-dev
git clone https://github.com/TelegramMessenger/MTProxy
sudo apt-get remove docker docker-engine docker.io cd MTProxy
sudo apt-get -y update make && cd objs/bin
sudo apt-get -y install \ curl -s https://core.telegram.org/getProxySecret -o proxy-secret
apt-transport-https \ curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get -y update
sudo apt-get -y install docker-ce
docker volume create portainer_data
docker run -d -p 9000:9000 --name=port --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment