Last active
June 30, 2018 20:07
-
-
Save squaredice/fe6d389e96a43997480737cffa58a993 to your computer and use it in GitHub Desktop.
Reboot MTProto docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true | |
do | |
export CONTAINERID=$(sudo docker ps --format '{{.ID}}') | |
export COMMANDTOEXEC="sudo docker stop $CONTAINERID && sudo docker run -d -p 443:443 -p 80:80 -e WORKERS=16 -e TAG=$MTPROTOTAG --restart=always -v proxy-config:/data trigun117/mtproto_proxy_stat" | |
eval $COMMANDTOEXEC | |
sleep 2h | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment