Skip to content

Instantly share code, notes, and snippets.

View Zyten's full-sized avatar
🖖

Ruban Selvarajah Zyten

🖖
View GitHub Profile
@Zyten
Zyten / openvpn-useradd-bulk.sh
Created November 22, 2024 06:28 — 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