Allow /home to have a different base location

If /home is eg located in /storge then we can now set a prefix for this.

Option -h or via config setting in "user_create.cfg" named
HOME_LOCATION="/path"

Note: Path has to be prefix with /. Any sub folders in home will be
ignored and the user is always created in /home/user.name
Group names as sub folders in /home are not supported
This commit is contained in:
Clemens Schwaighofer
2023-03-29 10:57:48 +09:00
parent a0e7347033
commit 61a8bca3d7
2 changed files with 71 additions and 38 deletions

2
config/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore