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
TMP=/tmp/wordpress
tear_down () {
docker-compose stop
cd ..
rm -rf tmp
rm -rf $TMP
}
mkdir tmp
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
mkdir $TMP
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
cd tmp
cd $TMP
mkdir db uploads
docker-compose up -d