cleaned addaccount.sh up
This commit is contained in:
parent
b369cdd0c1
commit
56c14def07
|
@ -2,15 +2,15 @@
|
|||
|
||||
############################################
|
||||
## ##
|
||||
## AEC FTP/sFTP Account Creation Script ##
|
||||
## FTP/sFTP Account Creation Script ##
|
||||
## v0.2 ##
|
||||
## Author: David Starzengruber ##
|
||||
## Author: david@socialnerds.org ##
|
||||
## ##
|
||||
############################################
|
||||
|
||||
## script configuration section ##
|
||||
accpath="/media/storage"
|
||||
acchost="betterftp.aec.at" # the dns name where your sever is reachable
|
||||
acchost="some.domain.org" # the dns name where your sever is reachable
|
||||
sftpgroup="sftpusers" # this group must exist
|
||||
trackrequester="yes" # switch to "no" if you do not want to track the requester
|
||||
logging=1 # set this to 0 if you don't want any logging
|
||||
|
@ -18,10 +18,10 @@ logpath="/media/storage/logs" # there you want to create your logfile
|
|||
logfile="accounts.log" # choose the logfile name here
|
||||
jabberlog=1 # set this to 0 if you don't want jabber notifications
|
||||
## following ist not necessary if jabberlog=0
|
||||
jabberwatchdogs="david@aec.at biancasc@aec.at geraldho@aec.at danielwe@aec.at"
|
||||
jabberuser="logging"
|
||||
jabberserver="jabber.aec.at"
|
||||
jabberpass="jabberLOG4711"
|
||||
jabberwatchdogs="admin@somedomain.org admin@someotherdomain.org"
|
||||
jabberuser="jabber-account"
|
||||
jabberserver="jabber-server"
|
||||
jabberpass="jabber-account-password"
|
||||
|
||||
|
||||
## am i root? ##
|
||||
|
@ -37,7 +37,7 @@ fi
|
|||
|
||||
#clear
|
||||
echo "" # just an empty line
|
||||
echo "Welcome to the AEC FTP/sFTP Account Creation Script (v0.2)"
|
||||
echo "Welcome to the FTP/sFTP Account Creation Script (v0.2)"
|
||||
## choose ftp or sftp
|
||||
echo ""
|
||||
echo "Which type of account you want to create? [sftp|ftp]"
|
||||
|
@ -144,7 +144,7 @@ fi
|
|||
## jabber notification
|
||||
if [ $jabberlog = 1 ]; then
|
||||
echo "
|
||||
This is Lieutenant Sulu,
|
||||
This is your FTP/sFTP Server,
|
||||
a "$acctype" account was just created.
|
||||
Accountname:" $accname "
|
||||
Quota:" $accquota "
|
||||
|
|
Loading…
Reference in New Issue