mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
12 lines
No EOL
323 B
Bash
12 lines
No EOL
323 B
Bash
#!/bin/bash
|
|
|
|
# Ensure correct ownership of the local_data directory
|
|
chown -R worker /home/worker/app/local_data
|
|
|
|
# Ensure correct ownership of the models directory if it exists
|
|
if [ -d "/home/worker/app/models" ]; then
|
|
chown -R worker /home/worker/app/models
|
|
fi
|
|
|
|
# Execute the command passed to the entrypoint
|
|
exec "$@" |