This commit is contained in:
Mateusz779 2023-04-25 11:36:26 +02:00
parent f8c70acc74
commit 1d2a70063a

View File

@ -87,9 +87,13 @@ if [ -n "$msmtp_conf" ]; then
fi fi
if [ -n "$scripts" ]; then if [ -n "$scripts" ]; then
cp -r $scripts /tmp/output/vpn mkdir /tmp/output/vpn/scripts
cp -r $scripts/* /tmp/output/vpn/scripts
fi fi
ls /tmp/output/vpn/scripts
ls /tmp/output/vpn/
sed -i 's/ip/'$ip'/g' /tmp/output/vpn/scripts/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")