Regenerate configuration file whenever share details changes

Signed-off-by: Arpit Goyal <agmps17@gmail.com>