[ROCm] centos update endpoint repo and fix sudo (#92034)
* Update ROCm centos Dockerfile
* Update install_user.sh for centos sudo issue
Fixes ROCm centos Dockerfile due to https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.9-1.x86_64.rpm file is not accessible.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92034
Approved by: https://github.com/malfet