harbor
harbor copied to clipboard
fix issue #9728: check if script is being run by root
Hi @freebased,
This install process can be conducted by not only root user ($EUID eq 0
), but also by the users who has root permissions, for example sudo ./install.sh
.
So I think it's not appropriate enough to do this check. We will get permission denied
errors if you don't have root permissions.
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.