#!/bin/bash DB=$(cat db) dropdb $DB createdb $DB psql -1f base.sql $DB ./upgrade