fix shell script for updating domains