1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-05 21:57:31 +02:00

Fix dockerfile

This commit is contained in:
trendschau
2025-05-28 15:10:18 +02:00
parent 7c3b0bda60
commit e2d5af5be3
2 changed files with 17 additions and 9 deletions

View File

@@ -1,5 +1,12 @@
#!/bin/sh
# mount data from persistant storage if not empty
find /var/www/html/content -type d -empty -exec cp -R /var/www/html/content.default/* /var/www/html/content \;
find /var/www/html/themes -type d -empty -exec cp -R /var/www/html/themes.default/* /var/www/html/themes \;
find /var/www/html/media -type d -empty -exec cp -R /var/www/html/media.default/* /var/www/html/media \;
# Fix ownership (in case of new folders)
chown -R www-data:www-data /var/www/html/
apache2-foreground
# Start Apache in foreground
exec apache2-foreground