git: 9cc6e7bfdd1f - main - databases/greptimedb: Formatting and cosmetic changes

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 19 Feb 2024 10:16:55 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9cc6e7bfdd1f5c0c5abf93b420f78376a29c85fd

commit 9cc6e7bfdd1f5c0c5abf93b420f78376a29c85fd
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-02-19 10:16:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-02-19 10:16:22 +0000

    databases/greptimedb: Formatting and cosmetic changes
---
 databases/greptimedb/files/greptimedb.in | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/databases/greptimedb/files/greptimedb.in b/databases/greptimedb/files/greptimedb.in
index 5fe613368e2d..9d7615ccba0b 100644
--- a/databases/greptimedb/files/greptimedb.in
+++ b/databases/greptimedb/files/greptimedb.in
@@ -15,9 +15,9 @@
 #				standalone start -c %%ETCDIR%%/standalone.toml"
 #				for the 'standalone' mode.
 # greptimedb(_profile)?_user (user):	Set user to run greptimedb.
-#				Default is "nobody".
+#				Default is "%%USER%%".
 # greptimedb(_profile)?_group (group):	Set group to run greptimedb.
-#				Default is "nobody".
+#				Default is "%%GROUP%%".
 # greptimedb(_profile)?_post_start (str):   Set extra commands that should be executed after greptimedb was successfully
 #                               started here.
 #                               Default is empty "".
@@ -42,8 +42,8 @@ if [ -n "$2" ]; then # profile is provided
 	if [ -n "${greptimedb_profiles}" ]; then
 		pidfile="${_piddir}/greptimedb.${profile}.pid"
 		eval greptimedb_enable="\${greptimedb_${profile}_enable:-${greptimedb_enable}}"
-                eval greptimedb_user="\${greptimedb_${profile}_user:-${greptimedb_user}}"
-                eval greptimedb_group="\${greptimedb_${profile}_group:-${greptimedb_group}}"
+		eval greptimedb_user="\${greptimedb_${profile}_user:-${greptimedb_user}}"
+		eval greptimedb_group="\${greptimedb_${profile}_group:-${greptimedb_group}}"
 		eval greptimedb_args="\${greptimedb_${profile}_args:-${greptimedb_args}}"
 		eval greptimedb_post_start="\${greptimedb_${profile}_post_start:-${greptimedb_post_start}}"
 	else
@@ -65,10 +65,11 @@ else # profile is not provided
 				else
 					_var=greptimedb_"${profile}"_enable
 				fi
-				warn "Bad value" \
-				    "'${_enable:-${greptimedb_enable}}'" \
-				    "for ${_var}. " \
-				    "Profile ${profile} skipped."
+				warn \
+					"Bad value" \
+					"'${_enable:-${greptimedb_enable}}'" \
+					"for ${_var}. " \
+					"Profile ${profile} skipped."
 				continue
 				;;
 			esac
@@ -85,9 +86,9 @@ fi
 
 greptimedb_poststart()
 {
-    if [ -n "$greptimedb_post_start" ]; then
-        eval $greptimedb_post_start
-    fi
+	if [ -n "$greptimedb_post_start" ]; then
+		eval $greptimedb_post_start
+	fi
 }
 
 greptimedb_poststop()