Last active
November 19, 2025 01:31
-
-
Save L-u-k-e/fca46bf5881a161822776f13eb0e75bf to your computer and use it in GitHub Desktop.
MIRIX Bastion setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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