#!/bin/bash
# Macroscop Repository

sudo apt-get update
sudo apt-get install gpg -y

sudo rm -f /etc/apt/sources.list.d/macroscop*
#macroscop
wget -O- -q https://packages.macroscop.com/deb/macroscop.gpg.key | sudo apt-key add -
sudo echo "deb https://packages.macroscop.com/deb/public macroscop main" | sudo tee /etc/apt/sources.list.d/macroscop.list > /dev/null

# postgres
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

sudo apt-get update
