mirror of
https://github.com/typemill/typemill.git
synced 2025-07-29 10:20:13 +02:00
12 lines
522 B
Bash
12 lines
522 B
Bash
#!/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/
|
|
|
|
# Start Apache in foreground
|
|
exec apache2-foreground |