3 echo "Cleaning up the database"
4 invoke-rc.d apache2 stop
6 invoke-rc.d postgresql restart
7 su - postgres -c "dropdb -e gforge"
8 echo "Executing: pg_restore -C -d template1 < /root/dump"
9 su - postgres -c "pg_restore -C -d template1" < /root/dump
11 invoke-rc.d apache2 start