Skip to content

Instantly share code, notes, and snippets.

@L-u-k-e
Last active November 19, 2025 01:31
Show Gist options
  • Select an option

  • Save L-u-k-e/fca46bf5881a161822776f13eb0e75bf to your computer and use it in GitHub Desktop.

Select an option

Save L-u-k-e/fca46bf5881a161822776f13eb0e75bf to your computer and use it in GitHub Desktop.
MIRIX Bastion setup
#!/bin/bash
# MIRIX Bastion Setup Script
# Quick setup script for running MIRIX database operations on an AWS bastion host
# Author: Your Name
# Usage: curl -sSL https://gist.githubusercontent.com/L-u-ke/fca46bf5881a161822776f13eb0e75bf/raw | bash
set -e
echo "=================================================="
echo "MIRIX Bastion Setup Script"
echo "=================================================="
echo ""
# Install dependencies
echo "📦 Installing dependencies (git, postgresql)..."
sudo yum install -y git postgresql15 2>/dev/null || {
echo "❌ Failed to install dependencies"
exit 1
}
# Clone repository
echo ""
echo "📥 Cloning MIRIX repository..."
cd /home/ssm-user
if [ -d "MIRIX_Intuit" ]; then
echo "⚠️ MIRIX directory already exists, removing..."
rm -rf MIRIX_Intuit
fi
git clone https://github.com/LiaoJianhe/MIRIX_Intuit.git
cd MIRIX_Intuit
chmod a+x ./scripts/*
# Done
echo ""
echo "✅ Setup Complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment