diff options
-rwxr-xr-x | server/lib/ogfunctions.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/lib/ogfunctions.sh b/server/lib/ogfunctions.sh index c630e41f..413a700c 100755 --- a/server/lib/ogfunctions.sh +++ b/server/lib/ogfunctions.sh @@ -57,6 +57,12 @@ function help() { exit 0 } +# Showing script version number. +function version() { + awk '/^#@version/ {v=$2} END {if (v) print v}' "$0" + exit 0 +} + # Functions to manage a service. function restart() { _service restart "$1" |