lt_space / fix_permissions.sh
Arsive2's picture
Updated permissions
fb3dfc3
raw
history blame contribute delete
448 Bytes
#!/bin/bash
# Script to fix permissions in the container
set -e
echo "Setting up permissions for Universal Translator API..."
# Ensure directories exist
mkdir -p /app/.cache
mkdir -p /app/nltk_data
# Set permissions
chmod -R 777 /app/.cache
chmod -R 777 /app/nltk_data
echo "Permissions setup complete!"
# Verify NLTK data
python -c "import nltk; nltk.download('punkt', download_dir='/app/nltk_data')"
echo "NLTK data verification complete!"