The Unified and Autonomous Development Platform
fix: Logic to check root incorrect in agent.sh running on Chinese version of Ubuntu (OD-2538)
Robin Shenafddedc3080c
diff --git a/server-product/jsw/App.sh.in b/server-product/jsw/App.sh.inindex fdb78f26b5..96c80d557a 100644--- a/server-product/jsw/App.sh.in+++ b/server-product/jsw/App.sh.in@@ -216,7 +216,7 @@ gettext() {}checkIsRoot() {- if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then+ if [ `id -u` != "0" ] ; thenIS_ROOT=falseelseIS_ROOT=true