Merge pull request #63 from linuxserver/storage-dir-fix

rsync over new files in storage directory that may be related to a ne…
This commit is contained in:
aptalca 2023-04-22 12:24:12 -04:00 committed by GitHub
commit ceb86f66ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -31,7 +31,8 @@ RUN \
php81-pecl-imagick \
php81-phar \
php81-tokenizer \
php81-zip && \
php81-zip \
rsync && \
echo "**** configure php-fpm to pass env vars ****" && \
sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php81/php-fpm.d/www.conf && \
grep -qxF 'clear_env = no' /etc/php81/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php81/php-fpm.d/www.conf && \

View File

@ -31,7 +31,8 @@ RUN \
php81-pecl-imagick \
php81-phar \
php81-tokenizer \
php81-zip && \
php81-zip \
rsync && \
echo "**** configure php-fpm to pass env vars ****" && \
sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php81/php-fpm.d/www.conf && \
grep -qxF 'clear_env = no' /etc/php81/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php81/php-fpm.d/www.conf && \

View File

@ -31,7 +31,8 @@ RUN \
php81-pecl-imagick \
php81-phar \
php81-tokenizer \
php81-zip && \
php81-zip \
rsync && \
echo "**** configure php-fpm to pass env vars ****" && \
sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php81/php-fpm.d/www.conf && \
grep -qxF 'clear_env = no' /etc/php81/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php81/php-fpm.d/www.conf && \

View File

@ -27,6 +27,9 @@ fi
# handle storage directory
if [[ ! -e "/config/storage" ]]; then
mv /app/www/storage /config/
else
# account for new files in the storage dir that may have been added in a new release
rsync -azvP --ignore-existing /app/www/storage/ /config/storage/
fi
rm -rf /app/www/storage