chore: normalize file permissions across repository
- Remove executable permissions from configuration files (.editorconfig, .env.example, .gitignore) - Remove executable permissions from documentation files (README.md, LICENSE, SECURITY.md) - Remove executable permissions from web assets (HTML, CSS, JS files) - Remove executable permissions from data files (JSON, SQL, YAML, requirements.txt) - Remove executable permissions from source code files across all apps - Add executable permissions to Python
This commit is contained in:
22
scripts/quick-fix.sh
Executable file
22
scripts/quick-fix.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Quick Permission Fix for AITBC Development
|
||||
|
||||
echo "🔧 Quick AITBC Permission Fix..."
|
||||
|
||||
# Fix ownership
|
||||
sudo chown -R oib:aitbc /opt/aitbc
|
||||
|
||||
# Fix directory permissions
|
||||
sudo find /opt/aitbc -type d -exec chmod 2775 {} \;
|
||||
|
||||
# Fix file permissions
|
||||
sudo find /opt/aitbc -type f -exec chmod 664 {} \;
|
||||
|
||||
# Make scripts executable
|
||||
sudo find /opt/aitbc -name "*.sh" -exec chmod +x {} \;
|
||||
sudo find /opt/aitbc -name "*.py" -exec chmod +x {} \;
|
||||
|
||||
# Set SGID bit
|
||||
sudo find /opt/aitbc -type d -exec chmod g+s {} \;
|
||||
|
||||
echo "✅ Permissions fixed!"
|
||||
Reference in New Issue
Block a user