1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2015-12-06 17:21:51 +08:00
parent ddb9307873
commit f3ec6fd910

2
ghost/arm/docker-entrypoint.sh Normal file → Executable file
View File

@ -6,7 +6,7 @@ if [[ "$*" == npm*start* ]]; then
targetDir="$GHOST_CONTENT/$(basename "$dir")" targetDir="$GHOST_CONTENT/$(basename "$dir")"
mkdir -p "$targetDir" mkdir -p "$targetDir"
if [ -z "$(ls -A "$targetDir")" ]; then if [ -z "$(ls -A "$targetDir")" ]; then
tar -c --one-file-system -C "$dir" . | tar xC "$targetDir" tar cC "$dir" . | tar xC "$targetDir"
fi fi
done done