commit 78d6b3c3cf43216c847247a77a8aae3821be1a9d
Author: Elan Ruusamäe <[email protected]>
Date: Sat Sep 10 00:51:25 2016 +0300
gitlab-ctl: show usage if no args passed
gitlab-ctl.sh | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-ctl.sh b/gitlab-ctl.sh
index 088aafa..e505480 100755
--- a/gitlab-ctl.sh
+++ b/gitlab-ctl.sh
@@ -66,7 +66,24 @@ posttrans() {
EOF
}
-COMMAND=$1; shift
+usage() {
+ cat <<-EOF
+Usage: $0: command (subcommand)
+
+upgrade
+ Run migrations after a package upgrade
+
+ EOF
+}
+
+COMMAND=$1
+
+if [ -z "$COMMAND" ]; then
+ usage
+ exit 0
+fi
+
+shift
case "$COMMAND" in
preinst)
preinst
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/78d6b3c3cf43216c847247a77a8aae3821be1a9d
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit