Skip to content
Snippets Groups Projects
Commit f83d04ba authored by Florian Sesser's avatar Florian Sesser
Browse files

Re-adding force flag to ln command

Else the script will fail if the links are already there and not
rotate the preshared.key.

Also now write out a new preshared.key before creating the links
just in case that flag gets lost again.
parent 9c0922c5
No related branches found
No related tags found
3 merge requests!108Merge staging into production,!107Merge develop into staging,!91Integrate monitoring into production
Pipeline #729 passed
......@@ -32,9 +32,9 @@ for i in $MONITORING_IPS $VPNSERVER_IP; do
wg genkey | tee "${VPN_SECRETS}"/${i}.key | wg pubkey > "${VPN_SECRETS}"/${i}.pub
done
ln -s $VPNSERVER_IP.key "${VPN_SECRETS}"/server.key
ln -s $VPNSERVER_IP.pub "${VPN_SECRETS}"/server.pub
wg genpsk > "${VPN_SECRETS}"/preshared.key
ln -fs $VPNSERVER_IP.key "${VPN_SECRETS}"/server.key
ln -fs $VPNSERVER_IP.pub "${VPN_SECRETS}"/server.pub
# EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment