Skip to content

Commit

Permalink
Merge pull request #5431 from planetscale/morgo-backport-stronger-roo…
Browse files Browse the repository at this point in the history
…t-protection

Back port stronger root protection
  • Loading branch information
morgo authored Nov 13, 2019
2 parents cc07de2 + 2bd1c15 commit 0629f0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/local/101_initial_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ set -e
# shellcheck disable=SC2128
script_root=$(dirname "${BASH_SOURCE}")

if [[ $EUID -eq 0 ]]; then
echo "This script refuses to be run as root. Please switch to a regular user."
exit 1
fi

# start topo server
if [ "${TOPO}" = "zk2" ]; then
CELL=zone1 "$script_root/zk-up.sh"
Expand Down

0 comments on commit 0629f0d

Please sign in to comment.