Fix for postgis not going into foreground after setup