Update: test failed when use tmp path, change tmp path to /tmp/wordpress

This commit is contained in:
Siroco 2023-02-04 14:13:37 +01:00
parent 21ebe0bb1b
commit 9c8d102bde
No known key found for this signature in database
GPG Key ID: 1324098302A514B0

12
test
View File

@ -1,16 +1,18 @@
#!/bin/bash #!/bin/bash
TMP=/tmp/wordpress
tear_down () { tear_down () {
docker-compose stop docker-compose stop
cd .. cd ..
rm -rf tmp rm -rf $TMP
} }
mkdir tmp mkdir $TMP
cat env.sample | sed "s/USER_GROUP.*$/USER_GROUP=`id -u`:`id -g`/" > tmp/.env cat env.sample | sed "s/USER_GROUP.*$/USER_GROUP=`id -u`:`id -g`/" > $TMP/.env
cat docker-compose.yml | sed 's/registry.sindominio.net\/wordpress/wordpress/' > tmp/docker-compose.yml cat docker-compose.yml | sed 's/registry.sindominio.net\/wordpress/wordpress/' > $TMP/docker-compose.yml
cd tmp cd $TMP
mkdir db uploads mkdir db uploads
docker-compose up -d docker-compose up -d