Browse Source

new: added ``pandachi-manage`` scripts to install and update.

rc1
Valentin Lab 6 years ago
parent
commit
11a9835167
  1. 7
      bin/pandachi-install
  2. 17
      bin/pandachi-update

7
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 git clone git.0k.io:/var/git/0k/pandachi-deploy.git
fi 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 #[ -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 ## XXXvlab: should get rid of this file in some future

17
bin/pandachi-update

@ -14,7 +14,24 @@ EOF
charm --debug apply docker-host charm --debug apply docker-host
Wrap -d "Update pandachi-manage" <<EOF || exit 1
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
else
cd /opt/apps/pandachi-manage &&
git checkout master &&
git pull -r
fi
ln -sfn /opt/apps/pandachi-manage/bin/* /usr/local/sbin/
find -L /usr/local/sbin -maxdepth 1 -type l -ilname /opt/apps/pandachi-manage/bin/\* -delete
EOF
## there seem to be an error now within compose when trying to download let's encrypt image. ## there seem to be an error now within compose when trying to download let's encrypt image.
Wrap -d "Updating some docker images" <<EOF || exit 1 Wrap -d "Updating some docker images" <<EOF || exit 1
docker pull docker.0k.io/letsencrypt docker pull docker.0k.io/letsencrypt
EOF EOF
Loading…
Cancel
Save