mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 05:30:18 +00:00
Delete makeuser
moving on from ansible
This commit is contained in:
38
makeuser
38
makeuser
@@ -1,38 +0,0 @@
|
||||
#!/bin/bash
|
||||
# ---------------------------------------------------------------------------
|
||||
# makeuser - tilde new user creation
|
||||
# Usage: makeuser [-h|--help] <username> <email> "<pubkey>"
|
||||
# ---------------------------------------------------------------------------
|
||||
#
|
||||
# Forked from tilde.team's make user script (
|
||||
PROGNAME=${0##*/}
|
||||
VERSION="0.4"
|
||||
GEN_TDP="./gen_tdp"
|
||||
CONFIG=./setenv
|
||||
|
||||
. $CONFIG
|
||||
|
||||
source include/functions
|
||||
|
||||
[[ $(id -u) == 0 ]] && error_exit "Do not run this script as root."
|
||||
|
||||
case $1 in
|
||||
-h | --help)
|
||||
usage; exit ;;
|
||||
-* | --*)
|
||||
usage; error_exit "unknown option $1" ;;
|
||||
*)
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
$(sudo grep -qiw $1 $BANNED) && error_exit "$1 is on the ban list!"
|
||||
|
||||
#adding new user
|
||||
makeuser_no_ansible $1 $2
|
||||
add_account_recovery $1 $2
|
||||
|
||||
#Thunix specific section
|
||||
source include/ansible.sh
|
||||
# End Thunix specific section
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user