mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Merge pull request #845 from Thulium-Drake/fix_init
Ensure that the target folder is present before copying files into it
This commit is contained in:
1
debian/scripts/init.sh
vendored
1
debian/scripts/init.sh
vendored
@@ -10,6 +10,7 @@ fi
|
|||||||
if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
|
if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
|
||||||
|
|
||||||
# Check for required folders and create if needed
|
# Check for required folders and create if needed
|
||||||
|
[ -d /var/www/html/public] || mkdir -p /var/www/html/public
|
||||||
[ -d /var/www/html/storage/app/public ] || mkdir -p /var/www/html/storage/app/public
|
[ -d /var/www/html/storage/app/public ] || mkdir -p /var/www/html/storage/app/public
|
||||||
[ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions
|
[ -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/views ] || mkdir -p /var/www/html/storage/framework/views
|
||||||
|
|||||||
Reference in New Issue
Block a user