18 lines
No EOL
709 B
Bash
18 lines
No EOL
709 B
Bash
#!/bin/bash
|
|
# Manual commands to install PostGIS on the PostgreSQL LXC container
|
|
|
|
echo "Run these commands on the Proxmox host:"
|
|
echo ""
|
|
echo "# 1. Update package list in the container"
|
|
echo "pct exec 300 -- apt-get update"
|
|
echo ""
|
|
echo "# 2. Install PostGIS for PostgreSQL 15"
|
|
echo "pct exec 300 -- apt-get install -y postgresql-15-postgis-3"
|
|
echo ""
|
|
echo "# 3. Enable PostGIS extension in the APRS database"
|
|
echo "pct exec 300 -- sudo -u postgres psql -d aprs -c 'CREATE EXTENSION IF NOT EXISTS postgis;'"
|
|
echo ""
|
|
echo "# 4. Verify installation"
|
|
echo "pct exec 300 -- sudo -u postgres psql -d aprs -c 'SELECT PostGIS_Version();'"
|
|
echo ""
|
|
echo "After running these commands, the APRS migrations should work." |