Lil Durk -- the rapper accused of attempted murder -- wants to stay on the straight and narrow path after bonding out of jail ... and his childhood pastor's taking up the cause.
We've learned Durk's going back to his roots by placing himself back under the wings of his pastor who presided over the church he attended as a kid in Chicago. The pastor -- who's like a second father to Durk -- he flew from Chicago to Atlanta to vouch for the rapper at a recent hearing -- plans to use his ATL connections to get Durk involved in the community.
Durk apparently plans to spend time at shelters and soup kitchens. We're told he wants to get his hands dirty ... just like he used to in Chicago with the guidance of his pastor. He'd mentor kids there but, for obvious reasons, Durk's work in Chi-Town's been put on hold given the serious charges.
As we reported ... Durk posted $250k bond Friday after a judge agreed he's not a flight risk. Dude was so ecstatic getting outta jail ... he literally skipped all the way to his waiting SUV. Durk will have a curfew and have to wear an ankle monitor.
He turned himself in nearly a month ago after an arrest warrant was issued in connection to a February shooting outside a restaurant called The Varsity. A detective said in court, cops have surveillance video showing Durk firing a weapon from a car. The victim, shot in the thigh, survived.
Durk was booked last month for 5 felony charges ... including criminal attempt to commit murder, aggravated assault, possession of a firearm during commission of a felony, possession of a firearm by a convicted felon, and another charge of associating with a criminal street gang to participate in a crime.