summaryrefslogtreecommitdiffstats
path: root/zookeeper-command-line-client
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2021-03-16 10:51:19 +0100
committerHarald Musum <musum@verizonmedia.com>2021-03-16 10:51:19 +0100
commit5ecacff6250051c55543998c0bc68ddcc4065882 (patch)
tree90aee4ae37c6818af094d8b828c0fa49b4d6735c /zookeeper-command-line-client
parentf59e36dd56d18f1148a0665823c0dfe7e40dd805 (diff)
Do not use sudo when running vespa-zk* commands
Try to remove it, causes issues when using environment variables. Can't see why it should be needed by default either
Diffstat (limited to 'zookeeper-command-line-client')
-rwxr-xr-xzookeeper-command-line-client/src/main/sh/vespa-zkcli10
1 files changed, 3 insertions, 7 deletions
diff --git a/zookeeper-command-line-client/src/main/sh/vespa-zkcli b/zookeeper-command-line-client/src/main/sh/vespa-zkcli
index 1a5858b3222..0406e3d89c2 100755
--- a/zookeeper-command-line-client/src/main/sh/vespa-zkcli
+++ b/zookeeper-command-line-client/src/main/sh/vespa-zkcli
@@ -80,19 +80,15 @@ usage() {
echo ""
echo "-h|-help) print this help text"
- echo "-nosudo do not use sudo when running command"
}
-sudo="/usr/bin/sudo -u ${VESPA_USER}"
while [ $# -gt 0 ]; do
case $1 in
-h|-help) usage; exit 0;;
- -nosudo) shift; sudo="" ;;
*) echo "Unrecognized option '$1'" >&2; exit 1;;
esac
done
-$sudo java \
- -cp $VESPA_HOME/lib/jars/zookeeper-command-line-client-jar-with-dependencies.jar \
- -Dlog4j.configuration="log4j-vespa.properties" -Xms32m -Xmx512m \
- com.yahoo.vespa.zookeeper.cli.Main "$@"
+java -cp $VESPA_HOME/lib/jars/zookeeper-command-line-client-jar-with-dependencies.jar \
+ -Dlog4j.configuration="log4j-vespa.properties" -Xms32m -Xmx512m \
+ com.yahoo.vespa.zookeeper.cli.Main "$@"