Docker status modification

This commit is contained in:
Jay Sharma
2023-08-18 01:34:52 +05:30
parent 5094ef837f
commit cacb6b3306

View File

@@ -1,7 +1,8 @@
#!/bin/bash
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_SITEURL\'', '\'http://localhost/\'');' /usr/share/nginx/html/wp-config.php || exit
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_HOME\'', '\'http://localhost/\'');' /usr/share/nginx/html/wp-config.php || exit
wget -q --spider localhost && wget -q --spider localhost/wp-login.php || exit
sed -i '/http\:\/\/localhost/d' /usr/share/nginx/html/wp-config.php || exit
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
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_HOME\'', '\'http://localhost/\'');' $WP_FILE || exit
wget --spider localhost && wget --spider localhost/wp-login.php || exit
sed -i '/http\:\/\/localhost/d' $WP_FILE || exit