mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-24 11:31:07 +01:00
Update: test failed when use tmp path, change tmp path to /tmp/wordpress
This commit is contained in:
parent
21ebe0bb1b
commit
9c8d102bde
12
test
12
test
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user