This commit is contained in:
Mateusz779 2023-04-25 09:30:19 +02:00
parent a926a1751b
commit 42acfa57e3
2 changed files with 3 additions and 3 deletions

View File

@ -87,12 +87,12 @@ fi
mkdir /tmp/output/vpn/scripts mkdir /tmp/output/vpn/scripts
echo '#!/bin/sh echo '#!/bin/bash
printenv >> /tmp/starttap printenv >> /tmp/starttap
echo "$TAP" >> /tmp/starttap echo "$TAP" >> /tmp/starttap
ifconfig $TAP $ip netmask 255.255.255.0 up >> /tmp/starttap' > /tmp/output/vpn/scripts/starttap.sh ifconfig $TAP $ip netmask 255.255.255.0 up >> /tmp/starttap' > /tmp/output/vpn/scripts/starttap.sh
echo '#!/bin/sh echo '#!/bin/bash
printenv printenv
echo "$TAP" echo "$TAP"
ip -s -s neigh flush all dev $TAP' > /tmp/output/vpn/scripts/arpinggw.sh ip -s -s neigh flush all dev $TAP' > /tmp/output/vpn/scripts/arpinggw.sh

View File

@ -25,7 +25,7 @@
<td>{{ image.vpn_ip }}</td> <td>{{ image.vpn_ip }}</td>
<td> <td>
<form action="{{ url_for('download_key', image_id=image.id) }}" method="post"> <form action="{{ url_for('download_key', image_id=image.id) }}" method="post">
<button type="submit" class="btn">Pobierz</button> <button type="submit" class="btn btn-success">Pobierz</button>
</form> </form>
</td> </td>
<td> <td>