|
|
@ -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 |
|
|
|
|