nfs-dirmaker/README.md

30 lines
478 B
Markdown
Raw Normal View History

2022-04-05 19:06:55 +02:00
# nfs-dirmaker
2022-04-13 19:29:34 +02:00
Creates a directory into a NFS server exported file system.
We use it to create the users' home directory before trying the mount via autofs.
## Requirements
* Python 3.8+
* Flask 2.1
2022-04-15 18:50:41 +02:00
* gunicorn
2022-04-13 19:29:34 +02:00
### Build the environment
``` shell
python3 -m venv venv
. venv/bin/activate
pip install Flask
```
2022-04-15 18:50:41 +02:00
### Test the service
2022-04-13 19:29:34 +02:00
``` shell
source ./venv/bin/activate
export FLASK_APP=dircreate
export FLASK_ENV=development
flask run
```
2022-04-15 18:50:41 +02:00
Use gunincorn when in production