File tree 10 files changed +10
-10
lines changed
10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
72
72
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks
73
73
# https://github.com/docker-library/wordpress/issues/116
74
74
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
75
- sed -ri -e ' s/\r\n|\r/\n/g ' wp-config*
75
+ sed -ri -e ' s/\r$// ' wp-config*
76
76
77
77
if [ ! -e wp-config.php ]; then
78
78
awk ' /^\/\*.*stop editing.*\*\/$/ && c == 0 { c = 1; system("cat") } { print }' wp-config-sample.php > wp-config.php << 'EOPHP '
You can’t perform that action at this time.
0 commit comments