david/scripts-archive
david
/
scripts-archive
Archived
1
0
Fork 0
This repository has been archived on 2022-04-16. You can view files and clone it, but cannot push or open issues or pull requests.
scripts-archive/ftpsftp
david 5e60ee959c initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
..
archive initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
README.please initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
ftpsftp.func initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
ftpsftp.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
install.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00

README.please

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