Delete skeleton dir when container starts
This commit is contained in:
parent
af124f897b
commit
2586669c96
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm -R /var/www/owncloud/core/skeleton/*
|
||||
|
||||
true
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue