mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-11-04 19:55:38 +00:00
functions moved to include/functions
This commit is contained in:
1 parent
f3a9e42163
commit
9026f181f8
3 files changed
+17
-30
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
#Common functions used for several makeuser scripts
|
||||
|
||||
error_exit() {
|
||||
echo -e "${PROGNAME}: ${1:-"Unknown Error"}" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
usage() {
|
||||
echo -e "usage: $PROGNAME [-h|--help] <username> <email> \"<pubkey>\""
|
||||
}
|
||||
|
||||
sub_to_list() {
|
||||
echo "From: $1 Subject: subscribe" | sudo -u $1 mail $LIST_NAME
|
||||
}
|
||||
Reference in new issue
Block a user