Delete skeleton dir when container starts

This commit is contained in:
philipp lang 2024-06-30 21:04:20 +02:00
parent af124f897b
commit 2586669c96
3 changed files with 10 additions and 0 deletions

5
tests/Fileshare/08-skeleton.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
rm -R /var/www/owncloud/core/skeleton/*
true

View File

@ -27,6 +27,7 @@ services:
retries: 5
volumes:
- ./oc_tmp/files:/mnt/data
- ./08-skeleton.sh:/etc/entrypoint.d/08-skeleton.sh
mariadb:
image: mariadb:10.11

View File

@ -61,6 +61,10 @@ abstract class FileshareTestCase extends TestCase
$adapter->deleteDirectory($directory);
}
foreach ($adapter->files('/') as $file) {
$adapter->delete($file);
}
foreach ($dirs as $dir) {
$adapter->makeDirectory($dir);
}