Skip to content

Commit e2c4dd7

Browse files
Jimvinuser
andauthored
Added check to see if the script is running as root (#9)
Co-authored-by: user <user@quickstart.local>
1 parent 50699f5 commit e2c4dd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quickstart/stackable-quickstart.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22
# Install a single node deployment of Stackable
33

4+
if [ $UID != 0 ]
5+
then
6+
echo "This script must be run as root, exiting."
7+
exit 1
8+
fi
9+
410
# This is a dirty hack to get two K8s nodes running on a single machine.
511
# Use the shortname if hostname returns the FQDN or vice versa.
612
if [ "$(hostname -s)" = "$(hostname -f)" ]; then

0 commit comments

Comments
 (0)