scripts/start.sh aktualisiert

This commit is contained in:
2024-04-30 00:48:44 +02:00
parent ecd78ffb38
commit df00f09fbb

View File

@@ -91,6 +91,9 @@ Endpoint = ${SERVER_IP}:${SERVER_LISTEN_PORT}
AllowedIPs = ${WG_NET_IP}/32
EOF
if [ "${GENERATE_QR}" == "true" ]; then
qrencode -t png -o ${DATA_DIR}/wg${WG_CONFIG_ID}/client/peer${1}.png -r ${DATA_DIR}/wg${WG_CONFIG_ID}/client/peer${1}.conf
fi
}
if [ ! -f ${DATA_DIR}/wg${WG_CONFIG_ID}/server/wg${WG_CONFIG_ID}.conf ]; then