Refactor bash
Added dependency plugin install. Remove restart from task script