Fixed the sed commands
parent
f9d144e6f7
commit
385cbd41b4
|
|
@ -264,7 +264,7 @@ if [[ -f "$CONFIG_FILE" && -w "$CONFIG_FILE" ]]; then
|
||||||
INSERT_BLOCK+="define( 'WP_SITEURL', '${TARGET_URL}' );\n"
|
INSERT_BLOCK+="define( 'WP_SITEURL', '${TARGET_URL}' );\n"
|
||||||
fi
|
fi
|
||||||
if [[ $needs_http_host -eq 1 ]]; then
|
if [[ $needs_http_host -eq 1 ]]; then
|
||||||
INSERT_BLOCK+="if ( defined( 'WP_CLI' ) && WP_CLI && ! isset( $_SERVER['HTTP_HOST'] ) ) { $_SERVER['HTTP_HOST'] = '${HOST_ONLY}'; }\n"
|
INSERT_BLOCK+="if ( defined( 'WP_CLI' ) && WP_CLI && ! isset( \$_SERVER['HTTP_HOST'] ) ) { \$_SERVER['HTTP_HOST'] = '${HOST_ONLY}'; }\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
awk -v block="$INSERT_BLOCK" '
|
awk -v block="$INSERT_BLOCK" '
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue