new-user.sh 127 B

1234567
  1. #!/bin/bash
  2. wg genkey > tmpsk
  3. cat tmpsk | wg pubkey > tmppk
  4. echo "$1 $(cat tmppk) $(cat tmpsk)" >> profiles
  5. rm tmpsk
  6. rm tmppk