Ensure that the target folder is present before copying files into it

This commit is contained in:
Jeffrey van Pelt
2025-12-20 12:11:55 +01:00
parent a7f9ed049c
commit d81eb48e55

View File

@@ -21,6 +21,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
rm -rf /var/www/html/public/.htaccess \
/var/www/html/public/.well-known \
/var/www/html/public/*
mkdir -p /var/www/html/public
cp -r /tmp/public/* \
/tmp/public/.htaccess \
/tmp/public/.well-known \