Browse Source

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

rc1
Valentin Lab 5 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
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

17
bin/pandachi-update

@ -14,7 +14,24 @@ EOF
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.
Wrap -d "Updating some docker images" <<EOF || exit 1
docker pull docker.0k.io/letsencrypt
EOF
Loading…
Cancel
Save