Ex-South Africa convict becomes mayor and gives up his salary