mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Create required dirs if missing
Signed-off-by: Richy HBM <RichyHBM@users.noreply.github.com>
This commit is contained in:
6
debian/scripts/init.sh
vendored
6
debian/scripts/init.sh
vendored
@@ -1,6 +1,12 @@
|
|||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
|
|
||||||
if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
|
if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
|
||||||
|
|
||||||
|
# Check for required folders and create if needed
|
||||||
|
[ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions
|
||||||
|
[ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views
|
||||||
|
[ -d /var/www/html/storage/framework/cache ] || mkdir -p /var/www/html/storage/framework/cache
|
||||||
|
|
||||||
# Workaround for application updates
|
# Workaround for application updates
|
||||||
if [ "$(ls -A /tmp/public)" ]; then
|
if [ "$(ls -A /tmp/public)" ]; then
|
||||||
echo "Updating public folder..."
|
echo "Updating public folder..."
|
||||||
|
|||||||
Reference in New Issue
Block a user