You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
815 B

6 years ago
6 years ago
6 years ago
  1. #!/bin/bash
  2. . /etc/shlib
  3. include parse
  4. include common
  5. include pretty
  6. Wrap -d "Updating 0k-charms" <<EOF || exit 1
  7. cd /opt/apps/0k-charms
  8. git pull -r
  9. EOF
  10. charm --debug apply docker-host
  11. Wrap -d "Update pandachi-manage" <<EOF || exit 1
  12. if ! [ -d "/opt/apps/pandachi-manage" ]; then
  13. mkdir -p /opt/apps && cd /opt/apps
  14. git clone git.0k.io:/var/git/0k/pandachi-manage.git
  15. else
  16. cd /opt/apps/pandachi-manage &&
  17. git checkout master &&
  18. git pull -r
  19. fi
  20. ln -sfn /opt/apps/pandachi-manage/bin/* /usr/local/sbin/
  21. find -L /usr/local/sbin -maxdepth 1 -type l -ilname /opt/apps/pandachi-manage/bin/\* -delete
  22. EOF
  23. ## there seem to be an error now within compose when trying to download let's encrypt image.
  24. Wrap -d "Updating some docker images" <<EOF || exit 1
  25. docker pull docker.0k.io/letsencrypt
  26. EOF