Skip to content

Commit d647bcf

Browse files
author
Jordalgo
committed
Update readme and change wp-config file name
so the sample file doesn't get ignored by deploy-exclude
1 parent baf11c1 commit d647bcf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker-entrypoint-wordpress.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
2424
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
2525
# https://github.com/docker-library/wordpress/issues/116
2626
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
27-
sed -ri 's/\r\n|\r/\n/g' ./setup/wp-config*
27+
sed -ri 's/\r\n|\r/\n/g' ./setup/wp-config-sample*
2828

2929
if [ ! -e wp-config.php ]; then
30-
awk '/^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' ./setup/wp-config.php > wp-config.php <<'EOPHP'
30+
awk '/^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' ./setup/wp-config-sample.php > wp-config.php <<'EOPHP'
3131
// If we're behind a proxy server and using HTTPS, we need to alert Wordpress of that fact
3232
// see also http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy
3333
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {

setup/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ This current setup uses `rsync` via `deploy.sh` (which was copied into the root
3434
Update the `deploy.sh` file by changing USERNAME, DOMAIN, and FOLDER to match your remote server's information. Then you can run `sh deploy.sh`.
3535

3636
On your server:
37-
- `cp setup/htaccess-remote .htaccess` (this version has more security settings)
38-
- `cp setup/wp-config.php wp-config.php`. Then update the database values to match what you have configured with your web host AND fill in the unique keys and salts ([generate these](https://api.wordpress.org/secret-key/1.1/salt)). It's also a good idea to change the table prefix from `wp_` to something unique.
37+
- `cp setup/htaccess-remote .htaccess` (this version has more security settings but you will need to update it with your site details).
38+
- `cp setup/wp-config-sample.php wp-config.php`. Then update the database values to match what you have configured with your web host AND fill in the unique keys and salts ([generate these](https://api.wordpress.org/secret-key/1.1/salt)). It's also a good idea to change the table prefix from `wp_` to something unique.
3939

4040
## More Details
4141

File renamed without changes.

0 commit comments

Comments
 (0)