mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
Remove -tmp logic
This commit is contained in:
parent
1603fb13fc
commit
288cb8d25b
@ -52,7 +52,7 @@ RUN \
|
||||
echo "**** install composer dependencies ****" && \
|
||||
composer install -d /app/www/ && \
|
||||
echo "**** overlay-fs bug workaround ****" && \
|
||||
mv /app/www /app/www-tmp && \
|
||||
mv /app/www /app/www && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -52,7 +52,7 @@ RUN \
|
||||
echo "**** install composer dependencies ****" && \
|
||||
composer install -d /app/www/ && \
|
||||
echo "**** overlay-fs bug workaround ****" && \
|
||||
mv /app/www /app/www-tmp && \
|
||||
mv /app/www /app/www && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -52,7 +52,7 @@ RUN \
|
||||
echo "**** install composer dependencies ****" && \
|
||||
composer install -d /app/www/ && \
|
||||
echo "**** overlay-fs bug workaround ****" && \
|
||||
mv /app/www /app/www-tmp && \
|
||||
mv /app/www /app/www && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -1,12 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [ -d /app/www-tmp ]; then
|
||||
echo "New container detected. Setting up app folder and fixing permissions."
|
||||
mv /app/www-tmp /app/www
|
||||
lsiown -R abc:abc /app/www
|
||||
fi
|
||||
|
||||
# create directory structure
|
||||
mkdir -p \
|
||||
/config/www/{uploads,files,images,themes}
|
||||
@ -147,6 +141,7 @@ fi
|
||||
|
||||
# permissions
|
||||
lsiown -R abc:abc \
|
||||
/app/www/storage \
|
||||
/config
|
||||
|
||||
# set lockfile to avoid DB waits for this specific container
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user