Merged in feature/common-images (pull request #51)

common images

* common images resolve commit with --rebase

* Remove bitbucket-pipelines.yml.orig


Approved-by: Rachit Bhargava
This commit is contained in:
Jay Sharma
2024-05-20 15:33:06 +00:00
committed by Rachit Bhargava
parent 4783d97a46
commit 53b1c63251
17 changed files with 188 additions and 63 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# -----------------------------------------------------------------------------------------------------
export WP_FILE="/usr/share/nginx/subdomain/www/wp-config.php"
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_SITEURL\'', '\'http://localhost/\'');' $WP_FILE || exit 9
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_HOME\'', '\'http://localhost/\'');' $WP_FILE || exit 9
wget -q --spider localhost && echo pass-localhost || exit 9
sleep 1
wget -q --spider localhost/wp-login.php && echo pass-wp-login.php|| exit 9
sed -i '/http\:\/\/localhost/d' $WP_FILE || exit 9
# ---------------------------------------------------