#!/bin/bash
# Run this script before running the vagrant file
# Make all .sh scripts executable and set correct permissions

# Make all .sh scripts executable
find . -type f -name "*.sh" -exec chmod +x {} \;

# Set correct permissions for other files and directories
find . -type f -not -name "*.sh" -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

echo "All .sh scripts are now executable and permissions are set correctly."
