The Andy Griffith Show (1960)
S5E29 The Luck of Newton Monroe
Andy apprehends a wandering salesman for peddling defective goods and assigns him to community service, where he fails spectacularly at each task. Faced with the challenge of rebuilding the man's self-esteem, Andy realizes he might need to compromise his cherished front porch to help him find his footing again.