34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
attention: the install procedure is broke at the moment..
|
|
|
|
## why are some variables defined in the configfile and some directly in the script?
|
|
the vars in the configfile are specific to your installation and can or should be changed. everything defined directly in the script should remain the same for every installation.
|
|
|
|
## features wanted
|
|
|
|
info option (or some sort of stats)
|
|
|
|
-- ftp user count
|
|
-- sftp user count
|
|
-- used disk space
|
|
-- used disk space by user
|
|
-- free disk space
|
|
-- free quota
|
|
-- quotamountpoint
|
|
|
|
|
|
|
|
## functions
|
|
quotacalc ... gives back the free megabytes on the storage
|
|
quotaconf ... sets the quota for existing user
|
|
isuserthere ... checks if user exists or asks to create it
|
|
amiroot ... checks if there are root privileges (ends scripts if not)
|
|
update ... pulls updates from ftpsftp git repository
|
|
version ... prints version information
|
|
usage ... prints usage message
|
|
add ... adding a new user
|
|
delete ... delete an existing user
|
|
|
|
|
|
|
|
contact me if you have any questions: david@socialnerds.org
|