outsource variables to config file

This commit is contained in:
2015-07-10 13:10:51 +03:00
parent 98efcf07ea
commit 1cc301e85c
2 changed files with 12 additions and 8 deletions

View File

@@ -33,14 +33,6 @@ ACTION="$1" # adduser, changepw, listusers, userdetail, deluser, sizeall, size
USER="$2"
PASS="$3"
SYSUSER=$(whoami)
NOTES="$HOME/$SYSUSER-Notes.txt"
NOTESTMP=.Notes.txt.tmp
MAILTYPE=mailsendenc # Use mailsend for plaintext, mailsendenc for SSL-encrypted details
SSLKEY=ssl.key # Only needed when using mailsendenc
MAILTMP=.mail.txt.tmp
## FUNCTIONS
function checkaction {
REGEX="^adduser$|^changepw$|^listusers$|^userdetail$|^deluser$|^sizeall$|^sizeuser$|^viewdata$"