tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-15 21:00:19 +03:00
parent 51b827d15e
commit a1d805a751
2 changed files with 1 additions and 8 deletions

View File

@ -110,14 +110,6 @@ echo "# Setup: wireguard default profile..."
echo "# client config:"
@ mkdir -p clients
@ pct pull $ID /etc/wireguard/clients/default.conf clients/default.conf
# show the profile as a qrcode...
#if [ "$QRCODE" ] ; then
# echo "# default profile:"
# @ lxc-attach $ID -- qrencode -t UTF8 -r /etc/wireguard/clients/default.conf
#fi
#echo "# Setup: bridge device..."
@ lxc-attach $ID wg-quick up wg0
echo "# Post config..."
pctSet $ID "${OPTS_STAGE_2}" $REBOOT

View File

@ -40,6 +40,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
-e 's/\$${\SERVER_PRIVATE_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_KEY)")'/g' \
> "$@"
chmod 600 $@
wg-quick up wg0
# XXX need to figure out a way to link this to the .config file without
# conflicting with the server's wg0.conf