7 lines
153 B
Bash
7 lines
153 B
Bash
|
#!/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
|