From 11a983516751f76176e998bc29dee00e787e2eb4 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 17 Dec 2018 16:36:19 +0100 Subject: [PATCH] new: added ``pandachi-manage`` scripts to install and update. --- bin/pandachi-install | 7 +++++++ bin/pandachi-update | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/bin/pandachi-install b/bin/pandachi-install index 7bef22f..e2253a4 100755 --- a/bin/pandachi-install +++ b/bin/pandachi-install @@ -16,6 +16,13 @@ if ! [ -d "/opt/apps/pandachi-deploy" ]; then git clone git.0k.io:/var/git/0k/pandachi-deploy.git fi +if ! [ -d "/opt/apps/pandachi-manage" ]; then + mkdir -p /opt/apps && cd /opt/apps + git clone git.0k.io:/var/git/0k/pandachi-manage.git +fi + +ln -sfn /opt/apps/pandachi-manage/bin/* /usr/local/bin/ + #[ -e /etc/compose.conf ] || ln -sfv /opt/apps/pandachi-deploy/etc/compose.conf /etc/compose.conf ## XXXvlab: should get rid of this file in some future diff --git a/bin/pandachi-update b/bin/pandachi-update index 30be7ed..4dc40de 100755 --- a/bin/pandachi-update +++ b/bin/pandachi-update @@ -14,7 +14,24 @@ EOF charm --debug apply docker-host + +Wrap -d "Update pandachi-manage" <