Skip to content

Commit

Permalink
fix restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Feb 20, 2024
1 parent 65fc15a commit 4c51db0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ fi
mkdir -p $_WG_CONF && /bin/cp -rf /opt/wgcf-profile.conf "$_WG_CONF/$NET_DEV.conf" && /bin/cp -rf /opt/danted.conf "$SOCKS_CONF"

wg-quick up "$NET_DEV" >> /root/wg-log 2>&1
wg-quick down "$NET_DEV" >> /root/wg-set 2>&1
sleep 1
wg-quick up "$NET_DEV" >> /root/wg 2>&1

ln -s "$SOCKS_BIN" /usr/bin/rws-cli && chmod +x /usr/bin/rws-cli || echo "existed"

Expand Down

0 comments on commit 4c51db0

Please sign in to comment.