Skip to content

Commit f8cbd07

Browse files
committed
Fix shell syntax and formatting in deploy-minio.sh
Corrects a malformed root check and tidies up else-branch formatting. Adds missing semicolons and an explicit exit in the EUID check to prevent a syntax/runtime error when not run as root, and normalizes indentation for the SSL certs echo message ("/etc/minio/certs"). These are purely stylistic/safety fixes to ensure the script runs cleanly.
1 parent 8e5a03b commit f8cbd07

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

deploy-minio.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Matthew Hutchinson <mhutchinson@45drives.com>
44

5-
if [ $EUID -ne 0 ]; then echo "Must be run as root!" >&2 exit 2 fi
5+
if [ $EUID -ne 0 ]; then echo "Must be run as root!" >&2; exit 2; fi
66

77
set -e
88

@@ -124,8 +124,8 @@ if [[ "$USE_SSL" == "y" ]]; then
124124
openssl req -new -x509 -key /etc/minio/certs/private.key -out /etc/minio/certs/public.crt -days 3650
125125
chown -R minio-user:minio-user /etc/minio/certs
126126
chmod 600 /etc/minio/certs/private.key
127-
else
128-
echo -e "\033[1;36mPlace SSL certs in \"/etc/minio/certs\" for custom certificates\033[0m"
127+
else
128+
echo -e "\033[1;36mPlace SSL certs in \"/etc/minio/certs\" for custom certificates\033[0m"
129129
fi
130130

131131
echo "Creating systemd service for MinIO..."

0 commit comments

Comments
 (0)