#!/bin/bash set -x cd /etc/systemd/network && \ wg genpsk > "$1".psk && \ chmod o-rwx "$1".psk && \ chown root:systemd-network "$1".psk && \ cat "$1".psk