Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Allow --help as non-root for install-agent.sh #664

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions install-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@

set -e

if [ "$EUID" -ne 0 ]; then
echo "Please run as root."
exit
fi

function print_help() {
cat <<END
This is a trento-agent installer. Trento is a web-based graphical user interface
Expand All @@ -33,6 +28,11 @@ case "$1" in
;;
esac

if [ "$EUID" -ne 0 ]; then
echo "Please run as root."
exit
fi

ARGUMENT_LIST=(
"ssh-address:"
"server-ip:"
Expand Down