issue #20524: mirror changes to init_script