File tree Expand file tree Collapse file tree
plugin-conflict-mapper/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
4444 WP_TESTS_TAG=" trunk"
4545else
4646 # http serves a single offer, whereas https serves multiple. we only want one
47- download http://api.wordpress.org/core/version-check/1.7/ /tmp/ wp-latest.json
48- grep ' [0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/ wp-latest.json
49- LATEST_VERSION=$( grep -o ' "version":"[^"]*' /tmp/ wp-latest.json | sed ' s/"version":"//' )
47+ download http://api.wordpress.org/core/version-check/1.7/ " $HYPATIA_TMPDIR / wp-latest.json"
48+ grep ' [0-9]+\.[0-9]+(\.[0-9]+)?' " $HYPATIA_TMPDIR / wp-latest.json"
49+ LATEST_VERSION=$( grep -o ' "version":"[^"]*' " $HYPATIA_TMPDIR / wp-latest.json" | sed ' s/"version":"//' )
5050 if [[ -z " $LATEST_VERSION " ]]; then
5151 echo " Latest WordPress version could not be found"
5252 exit 1
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ echo " $LOCAL_DIR/{html,db} created"
3939echo " [2/7] Checking WordPress..."
4040if [ ! -f " $HTML_DIR /wp-includes/version.php" ]; then
4141 echo " Downloading WordPress..."
42- curl -sL https://wordpress.org/latest.tar.gz -o /tmp/ wordpress-latest.tar.gz
43- tar xzf /tmp/ wordpress-latest.tar.gz -C /tmp/
44- cp -a /tmp/ wordpress/* " $HTML_DIR /"
45- rm -rf /tmp/ wordpress /tmp/ wordpress-latest.tar.gz
42+ curl -sL https://wordpress.org/latest.tar.gz -o " $HYPATIA_TMPDIR / wordpress" -latest.tar.gz
43+ tar xzf " $HYPATIA_TMPDIR / wordpress" -latest.tar.gz -C /tmp/
44+ cp -a " $HYPATIA_TMPDIR / wordpress" /* " $HTML_DIR /"
45+ rm -rf " $HYPATIA_TMPDIR / wordpress" " $HYPATIA_TMPDIR / wordpress" -latest.tar.gz
4646 echo " WordPress downloaded"
4747else
4848 echo " WordPress already present"
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ echo "[4/5] Checking WordPress installation..."
9898if [ ! -f " $WHARF_ROOT /sites/$DOMAIN /html/wp-config.php" ]; then
9999 echo " No WordPress found. Downloading..."
100100 curl -sL https://wordpress.org/latest.tar.gz | tar xz -C /tmp/
101- cp -r /tmp/ wordpress/* " $WHARF_ROOT /sites/$DOMAIN /html/"
102- rm -rf /tmp/ wordpress
101+ cp -r " $HYPATIA_TMPDIR / wordpress" /* " $WHARF_ROOT /sites/$DOMAIN /html/"
102+ rm -rf " $HYPATIA_TMPDIR / wordpress"
103103
104104 # Write wp-config.php pointing DB through the yacht-agent proxy
105105 cat > " $WHARF_ROOT /sites/$DOMAIN /html/wp-config.php" << 'WPEOF '
Original file line number Diff line number Diff line change @@ -167,12 +167,12 @@ if [ "$BUILD" = true ]; then
167167 log_info " Test 5: Quick container run test..."
168168
169169 # Create a simple test
170- mkdir -p /tmp/ wharf-test
171- echo ' <?php phpinfo(); ?>' > /tmp/ wharf-test/index.php
172- echo ' <html><body><h1>Wharf Test</h1></body></html>' > /tmp/ wharf-test/index.html
170+ mkdir -p " $HYPATIA_TMPDIR / wharf-test"
171+ echo ' <?php phpinfo(); ?>' > " $HYPATIA_TMPDIR / wharf-test" /index.php
172+ echo ' <html><body><h1>Wharf Test</h1></body></html>' > " $HYPATIA_TMPDIR / wharf-test" /index.html
173173
174174 # Try to start nginx container briefly
175- CONTAINER_ID=$( podman run -d --rm -p 18080:8080 -v /tmp/ wharf-test:/var/www/html:ro yacht-nginx:test 2> /dev/null || echo " " )
175+ CONTAINER_ID=$( podman run -d --rm -p 18080:8080 -v " $HYPATIA_TMPDIR / wharf-test" :/var/www/html:ro yacht-nginx:test 2> /dev/null || echo " " )
176176
177177 if [ -n " $CONTAINER_ID " ]; then
178178 sleep 2
@@ -197,7 +197,7 @@ if [ "$BUILD" = true ]; then
197197 fail_test " Failed to start nginx container"
198198 fi
199199
200- rm -rf /tmp/ wharf-test
200+ rm -rf " $HYPATIA_TMPDIR / wharf-test"
201201fi
202202
203203# =============================================================================
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ function generate_schema_org_rdf($post) {
362362
363363 return aegis_turtle_triple (
364364 $url,
365- ' http ://schema.org/name' ,
365+ ' https ://schema.org/name' ,
366366 $title,
367367 get_locale ()
368368 );
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ BLUE='\033[0;34m'
1515NC=' \033[0m' # No Color
1616
1717# Configuration
18- WP_PATH=" ${WP_PATH:-/ tmp / php-aegis-wp-test} "
18+ WP_PATH=" ${WP_PATH:- " $HYPATIA_TMPDIR / php-aegis-wp-test" } "
1919WP_URL=" ${WP_URL:- http:// localhost: 8888} "
2020WP_TITLE=" php-aegis Test Site"
2121WP_ADMIN_USER=" admin"
You can’t perform that action at this time.
0 commit comments