Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lizsvr committed Oct 8, 2022
1 parent 3270ed3 commit 88c1110
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ssh/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LIGHT='\033[0;37m'
MYIP=$(wget -qO- ipinfo.io/ip);
echo "Checking VPS"
IZIN=$(curl https://raw.githubusercontent.com/lizsvr/project/main/ipvps.txt | grep $MYIP | awk '{print $3}')
if [ $MYIP = $IZIN ]; then
if [ $MYIP = $MYIP ]; then
echo -e "${NC}${GREEN}Permission Accepted...${NC}"
else
echo -e "${NC}${RED}Permission Denied!${NC}";
Expand All @@ -29,7 +29,7 @@ sleep 2
#systemctl restart ssrmu
systemctl restart ws-tls
systemctl restart ws-nontls
systemctl restart xray.service
#systemctl restart xray.service
#systemctl restart shadowsocks-libev
#systemctl restart xl2tpd
#systemctl restart pptpd
Expand All @@ -40,7 +40,7 @@ systemctl restart ws-ovpn
systemctl restart ssh-ohp
systemctl restart dropbear-ohp
systemctl restart openvpn-ohp
systemctl restart trojan-go
#systemctl restart trojan-go
#/etc/init.d/ssrmu restart
/etc/init.d/ssh restart
/etc/init.d/dropbear restart
Expand Down
2 changes: 1 addition & 1 deletion ssh/vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LIGHT='\033[0;37m'
MYIP=$(wget -qO- ipinfo.io/ip);
echo "Checking VPS"
IZIN=$(curl https://raw.githubusercontent.com/lizsvr/project/main/ipvps.txt | grep $MYIP | awk '{print $3}')
if [ $MYIP = $IZIN ]; then
if [ $MYIP = $MYIP ]; then
echo -e "${NC}${GREEN}Permission Accepted...${NC}"
else
echo -e "${NC}${RED}Permission Denied!${NC}";
Expand Down

0 comments on commit 88c1110

Please sign in to comment.