24 lines
534 B
Bash
24 lines
534 B
Bash
#\!/bin/bash
|
|
# Supabase Bootstrap for Mylder VPS
|
|
set -e
|
|
|
|
echo "=== Supabase Bootstrap ==="
|
|
cd /srv
|
|
|
|
# Clone infrastructure repo
|
|
if [ -d "supabase" ]; then
|
|
echo "Removing existing supabase directory..."
|
|
rm -rf supabase
|
|
fi
|
|
|
|
# Clone from Gitea (public access via HTTPS)
|
|
git clone https://gitea.mylder.io/admin/infrastructure.git /tmp/infrastructure
|
|
mv /tmp/infrastructure/supabase /srv/supabase
|
|
rm -rf /tmp/infrastructure
|
|
|
|
cd /srv/supabase
|
|
chmod +x deploy.sh
|
|
|
|
echo "=== Files deployed. Run: cd /srv/supabase && ./deploy.sh ==="
|
|
|