Skip to content

Instantly share code, notes, and snippets.

@oisv2001
oisv2001 / openvpn-useradd-bulk.sh
Created February 17, 2025 16:33 — forked from Nyr/openvpn-useradd-bulk.sh
Simple script for adding users in bulk to an openvpn-install setup
#!/bin/bash
# Fast way for adding lots of users to an openvpn-install setup
# See the main openvpn-install project here: https://github.com/Nyr/openvpn-install
# openvpn-useradd-bulk is NOT supported or maintained and could become obsolete or broken in the future
# Created to satisfy the requirements here: https://github.com/Nyr/openvpn-install/issues/435
if readlink /proc/$$/exe | grep -qs "dash"; then
echo "This script needs to be run with bash, not sh"
exit 1