Updated Usage (markdown)

AbdBarho
2023-03-07 18:28:39 +01:00
parent 8ef518ceee
commit dea884b5fd

@@ -37,14 +37,20 @@ put your scripts `data/config/auto/scripts` and restart the container
You can use the UI to install extensions, or, you can put your extensions in `data/config/auto/extensions`, there is also the option to create a script `data/config/auto/startup.sh` which will be called on container startup, in case you want to install any additional dependencies for your extensions or anything else. You can use the UI to install extensions, or, you can put your extensions in `data/config/auto/extensions`, there is also the option to create a script `data/config/auto/startup.sh` which will be called on container startup, in case you want to install any additional dependencies for your extensions or anything else.
An example of your `startup.sh` might looks like this: An example of your `startup.sh` might looks like this:
```sh ```sh
# install all packages for the extensions # install all packages for the extensions
for s in extensions/*/install.py; do shopt -s nullglob
python "$s" list=(./extensions/*/requirements.txt)
for req in "${list[@]}"; do
pip install -q -r "$req"
done done
pip install -q --force-reinstall opencv-python-headless 'transformers>=4.24'
``` ```
NOTE: dependencies of extensions might get lost when you create a new container, hence the installing them in the startup script is important.
### **DONT OPEN AN ISSUE IF A SCRIPT OR AN EXTENSION IS NOT WORKING** ### **DONT OPEN AN ISSUE IF A SCRIPT OR AN EXTENSION IS NOT WORKING**
I maintain neither the UI nor the extension, I can't help you. I maintain neither the UI nor the extension, I can't help you.