#!/bin/bash # Setup script for PostgreSQL service # Make scripts executable chmod +x ./backup.sh chmod +x ./restore.sh chmod +x ./monitor.sh # Create necessary directories mkdir -p ../backups mkdir -p ../logs # Copy environment file if it doesn't exist if [ ! -f ../.env ]; then cp ../.env.example ../.env echo "Created .env file from .env.example" echo "Please update the .env file with your configuration" fi echo "Setup completed successfully!" echo "You can now start the PostgreSQL service with: docker-compose up -d"