mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 12:29:16 +00:00
mastodon: recursive move of assets
This commit is contained in:
parent
ca51e94383
commit
714d0efe90
@ -1,6 +1,6 @@
|
|||||||
FROM alpine:3.6
|
FROM alpine:3.6
|
||||||
|
|
||||||
ARG VERSION=v1.5.0rc1
|
ARG VERSION=v1.5.0rc2
|
||||||
ARG REPOSITORY=tootsuite/mastodon
|
ARG REPOSITORY=tootsuite/mastodon
|
||||||
|
|
||||||
ENV UID=991 GID=991 \
|
ENV UID=991 GID=991 \
|
||||||
|
@ -36,8 +36,8 @@ addgroup -g ${GID} mastodon &>/dev/null
|
|||||||
adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon &>/dev/null
|
adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon &>/dev/null
|
||||||
|
|
||||||
echo "Moving assets to volumes..."
|
echo "Moving assets to volumes..."
|
||||||
mv /tmp/assets/* public/assets &>/dev/null
|
cp -r /tmp/assets/* public/assets &>/dev/null
|
||||||
mv /tmp/packs/* public/packs &>/dev/null
|
cp -r /tmp/packs/* public/packs &>/dev/null
|
||||||
|
|
||||||
echo "Updating permissions, this can take a while..."
|
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
|
find /mastodon -path /mastodon/public/system -prune -o -not -user mastodon -not -group mastodon -print0 | xargs -0 chown -f mastodon:mastodon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user