[improverment]:The install.sh script does not check whether the user has sudo privileges#11018
[improverment]:The install.sh script does not check whether the user has sudo privileges#11018ZYJBigData wants to merge 3 commits intoapache:devfrom
Conversation
…r has sudo privileges.
Codecov Report
@@ Coverage Diff @@
## dev #11018 +/- ##
============================================
- Coverage 40.36% 40.35% -0.01%
- Complexity 4865 4871 +6
============================================
Files 943 950 +7
Lines 37061 37183 +122
Branches 4068 4078 +10
============================================
+ Hits 14958 15004 +46
- Misses 20600 20668 +68
- Partials 1503 1511 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. |
|
@ZYJBigData Hi, could you please rebase the code and push it again? It helps restart the CI. BTW, it would be better if you could keep the PR title complete : ) Thx~ |
|
I have a little doubt about that If the user does not have sudo permissions, should the worker be launched, because the task cannot be started without sudo permissions |
+1, instead of continuing, maybe the script should exit and output a message to instruct users to set up sudo permissions with a link to related doc or something. WDYT @ZYJBigData @chengshiwen @SbloodyS |
It seems that we have supported |
| zkRoot=${zkRoot:-"/dolphinscheduler"} | ||
|
|
||
| # whether the installation user has sudo permission | ||
| sudoEnable=${sudoEnable:-"true"} |
There was a problem hiding this comment.
Could you please update the docs about this? Thx
In that case, LGTM as long as related docs are updated. |
|
SonarCloud Quality Gate failed. |
| if [ ${sudoEnable} = true ]; then | ||
| sudo mkdir -p $installPath | ||
| sudo chown -R $deployUser:$deployUser $installPath | ||
| else | ||
| mkdir -p $installPath | ||
| chown -R $deployUser:$deployUser $installPath | ||
| fi |
There was a problem hiding this comment.
Why we need this? should we directly remove the sudo and require user have permission of installPath?
|
This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs. |
|
This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request. |








Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows: