That is true in some way but the original decision to shut them down was taken about 20 years ago by the left red/green government.
Merkels convernment initially decided to keep them running longer but took a 180 after Fukushima, probably as you say having the right feeling for the majority opinion in the country at that time.