Added check that uid=0 for update-repo