This commit is contained in:
Mateusz779 2023-04-25 11:28:09 +02:00
parent cee1c04209
commit f8c70acc74

View File

@ -90,7 +90,7 @@ if [ -n "$scripts" ]; then
cp -r $scripts /tmp/output/vpn cp -r $scripts /tmp/output/vpn
fi fi
sed -i 's/ip/'$ip'/g' starttap.sh sed -i 's/ip/'$ip'/g' /tmp/output/vpn/scripts/starttap.sh
sed -i '/^private_key/c\private_key uVPN.priv' /tmp/output/vpn/$(basename "$conf") sed -i '/^private_key/c\private_key uVPN.priv' /tmp/output/vpn/$(basename "$conf")
sed -i '/^tap_name/c\tap_name uvpnT2' /tmp/output/vpn/$(basename "$conf") sed -i '/^tap_name/c\tap_name uvpnT2' /tmp/output/vpn/$(basename "$conf")
sed -i '/^name/c\name '"$name" /tmp/output/vpn/$(basename "$conf") sed -i '/^name/c\name '"$name" /tmp/output/vpn/$(basename "$conf")