From 20a4d565ce4106402df7df1a2e687c5b0a06753b Mon Sep 17 00:00:00 2001 From: Lizsvr Date: Sun, 9 Oct 2022 13:08:00 +0700 Subject: [PATCH] update --- ssh/addhost.sh | 9 +++++++-- ssh/restart.sh | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ssh/addhost.sh b/ssh/addhost.sh index d3c3623..2b77168 100755 --- a/ssh/addhost.sh +++ b/ssh/addhost.sh @@ -24,11 +24,16 @@ echo -e "${NC}${LIGHT}Telegram : https://t.me/liz_mine" exit 0 fi clear + +# Delete Files +rm /etc/xray/* +rm /root/domain +rm /var/lib/akbarstorevpn/ipvps.conf +# Done + echo -e "=========================" read -rp "Masukan Domain/Host : " -e domain echo -e "=========================" -mkdir -p /usr/bin/xray -mkdir -p /etc/xray echo $domain >> /etc/xray/domain echo $domain >> /root/domain echo "IP=$domain" >> /var/lib/akbarstorevpn/ipvps.conf diff --git a/ssh/restart.sh b/ssh/restart.sh index ec37bbd..af29d9a 100755 --- a/ssh/restart.sh +++ b/ssh/restart.sh @@ -27,6 +27,7 @@ echo -e "" echo -e "Starting Restart All Service" sleep 2 #systemctl restart ssrmu +systemctl daemon-reload systemctl restart ws-tls systemctl restart ws-nontls #systemctl restart xray.service