mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 03:00:09 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8e6d39eb42
commit
51b827d15e
@ -106,7 +106,6 @@ echo "# Copying assets..."
|
|||||||
echo "# Setup: wireguard default profile..."
|
echo "# Setup: wireguard default profile..."
|
||||||
@ lxc-attach $ID -- bash -c "cd /root \
|
@ lxc-attach $ID -- bash -c "cd /root \
|
||||||
&& QRCODE=${QRCODE} make default.client"
|
&& QRCODE=${QRCODE} make default.client"
|
||||||
@ lxc-attach $ID -- chmod 600 /etc/wireguard/wg0.conf
|
|
||||||
|
|
||||||
echo "# client config:"
|
echo "# client config:"
|
||||||
@ mkdir -p clients
|
@ mkdir -p clients
|
||||||
|
|||||||
@ -39,6 +39,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
|
|||||||
-e 's/\$${\CLIENT_IPS}/$(subst /,\/,$(CLIENT_IPS))/g' \
|
-e 's/\$${\CLIENT_IPS}/$(subst /,\/,$(CLIENT_IPS))/g' \
|
||||||
-e 's/\$${\SERVER_PRIVATE_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_KEY)")'/g' \
|
-e 's/\$${\SERVER_PRIVATE_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_KEY)")'/g' \
|
||||||
> "$@"
|
> "$@"
|
||||||
|
chmod 600 $@
|
||||||
|
|
||||||
# XXX need to figure out a way to link this to the .config file without
|
# XXX need to figure out a way to link this to the .config file without
|
||||||
# conflicting with the server's wg0.conf
|
# conflicting with the server's wg0.conf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user