Update mm-scripts.sh

This commit is contained in:
2023-03-24 23:16:56 -05:00
parent 1b60216194
commit c93056e779

View File

@@ -83,7 +83,7 @@ AllowedIPs = 0.0.0.0/0
Endpoint = ${vpnaddress}:${vpnport}
PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
rm -f ${MMFOLDER}/vpninfo.*
rm -f ${MMFOLDER}/vpninfo
echo -e "$publickey" >> ${MMFOLDER}/vpninfo.publickey
echo -e "$vpnaddress" >> ${MMFOLDER}/vpninfo.address
echo -e "${idsCL[Green]} done${idsCL[Default]}"
@@ -383,7 +383,7 @@ MMSTOP(){
[ "$(/sbin/ip route show | grep default | cut -d' ' -f 3)" != "10.10.0.1" ] && /bin/ip route add default via 10.10.0.1 && ip route del $(cat ${MMFOLDER}/vpninfo.address)
[ $VERBOSE = true ] && echo "$(date) - Added default route back in" >> $logfile
rm -f ${MMFOLDER}/vpninfo.*
rm -f ${MMFOLDER}/vpninfo*
rm -f ${MMFOLDER}/noservices*
rm -f ${MMFOLDER}/mm.stop.checking