#!/bin/bash # Prepare sh /setup_programs.sh apt install -y lsb-release curl gpg apt install -y build-essential libssl-dev libffi-dev libgmp3-dev virtualenv libpq-dev python-dev #python-pip # Download curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list' apt update # Installation apt install -y pgadmin4 pgadmin4-web # Configure #GET /usr/pgadmin4/web/config.py # Configure rverse-proxy apt install -y nginx #Remove old nginx config #GET new config