From 91d9f3b29fecea2f8a7217845221693cf90d71f3 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Sat, 16 May 2020 18:46:53 +0800 Subject: [PATCH] upgrade 2.1.0 --- control | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/control b/control index b9892d76..9a8a6cff 100755 --- a/control +++ b/control @@ -1,7 +1,7 @@ #!/bin/bash # release version -version=2.0.0 +version=2.1.0 CWD=$(cd $(dirname $0)/; pwd) cd $CWD @@ -190,7 +190,11 @@ reload() pack() { - v=$(date +%Y-%m-%d-%H-%M-%S) + v=$1 + if [ "x${v}" = "x" ]; then + v=$(date +%Y-%m-%d-%H-%M-%S) + fi + tar zcvf n9e-$v.tar.gz control sql plugin pub etc/log etc/port etc/service etc/nginx.conf etc/mysql.yml etc/address.yml \ n9e-collector etc/collector.yml \ n9e-tsdb etc/tsdb.yml \ @@ -220,7 +224,7 @@ case "$1" in reload $2 ;; pack) - pack + pack $2 ;; *) usage