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

Commit

Permalink
Merge pull request #664 from fabriziosestito/allow_help_non_root_inst…
Browse files Browse the repository at this point in the history
…all_agent

Allow --help as non-root for install-agent.sh
  • Loading branch information
fabriziosestito committed Dec 28, 2021
2 parents b7933e3 + e49cbfc commit 36dcb0a
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 36dcb0a

Please sign in to comment.