diff --git a/ubuntu-install.sh b/ubuntu-install.sh index 5eb7be7..6707952 100644 --- a/ubuntu-install.sh +++ b/ubuntu-install.sh @@ -81,6 +81,11 @@ else exit 1 fi +# Set permissions for static files (nginx needs to read them) +log_info "Setting permissions for static files..." +chmod -R 755 static/ +find static/ -type f -exec chmod 644 {} \; + # Create Python virtual environment log_info "Creating Python virtual environment..." python3 -m venv venv