mastodon: recursive move of assets

This commit is contained in:
Wonderfall 2017-07-29 06:37:20 +02:00
parent ca51e94383
commit 714d0efe90
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
FROM alpine:3.6
ARG VERSION=v1.5.0rc1
ARG VERSION=v1.5.0rc2
ARG REPOSITORY=tootsuite/mastodon
ENV UID=991 GID=991 \

View File

@ -36,8 +36,8 @@ addgroup -g ${GID} mastodon &>/dev/null
adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon &>/dev/null
echo "Moving assets to volumes..."
mv /tmp/assets/* public/assets &>/dev/null
mv /tmp/packs/* public/packs &>/dev/null
cp -r /tmp/assets/* public/assets &>/dev/null
cp -r /tmp/packs/* public/packs &>/dev/null
echo "Updating permissions, this can take a while..."
find /mastodon -path /mastodon/public/system -prune -o -not -user mastodon -not -group mastodon -print0 | xargs -0 chown -f mastodon:mastodon