aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/config/docker/init/make-tar.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/config/docker/init/make-tar.sh')
-rwxr-xr-xkubernetes/config/docker/init/make-tar.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/kubernetes/config/docker/init/make-tar.sh b/kubernetes/config/docker/init/make-tar.sh
new file mode 100755
index 0000000000..7ec08ceee0
--- /dev/null
+++ b/kubernetes/config/docker/init/make-tar.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cd src/config
+
+TAR=/usr/local/opt/gnu-tar/libexec/gnubin/tar
+OS="`uname`"
+case $OS in
+ 'Linux')
+ OS='Linux'
+ TAR=/usr/bin/tar
+ ;;
+ 'Darwin')
+ OS='Mac'
+ ;;
+ *) ;;
+esac
+
+$TAR -cvzf ../../onap-cfg.tar.gz *