Move uploads to a persisten storage

This commit is contained in:
Silvio Messi
2022-10-29 11:15:40 +02:00
parent fcea0f3c09
commit 3ef50090f6
2 changed files with 21 additions and 0 deletions

View File

@@ -40,6 +40,9 @@ RUN \
#################
if [ "$BUILD_UPSTREAM" = "5.7.14" ] ; then \
sed -i "s|, \$transaction\[\x27amount\x27\] ?? \x270\x27);|, (string)(\$transaction\[\x27amount\x27\] ?? \x270\x27));|g" /var/www/html/app/Helpers/Collector/GroupCollector.php; else echo "not 5.7.5"; fi
RUN \
# Change upload folder to "ha_upload" since the default one is binded to a volume (see base image)
sed -i "s/'root' => storage_path('upload'),/'root' => storage_path('ha_upload'),/g" /var/www/html/config/filesystems.php
##################
# 3 Install apps #