blob: ff63e9e82ec913aa279aa23e7ed3c12b5a74ec93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
[ -z "$COMPOSE" ] && COMPOSE="$(command -v docker-compose)"
[ -z "$COMPOSE" ] && COMPOSE="/usr/local/bin/docker-compose"
cd $HOME
($COMPOSE pull 2>&1 | grep --silent "Downloaded newer") && \
$COMPOSE up -d && \
docker cp $($COMPOSE ps -q mstweb):/mastodon/public/assets public/ && \
docker cp $($COMPOSE ps -q mstweb):/mastodon/public/packs public/ && \
docker image prune -f
|