<table class="text">
<tr class="li1"><td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167 &2 'warning: both wordpress_DB_HOST and MysqL_PORT_3306_TCP found' echo >&2 " Connecting to wordpress_DB_HOST ($wordpress_DB_HOST)" echo >&2 ' instead of the linked MysqL container' fi fi if [ -z "$wordpress_DB_HOST" ]; then echo >&2 'error: missing wordpress_DB_HOST and MysqL_PORT_3306_TCP environment variables' echo >&2 ' Did you forget to --link some_MysqL_container:MysqL or set an external db' echo >&2 ' with -e wordpress_DB_HOST=hostname:port?' exit 1 fi # if we're linked to MysqL,and we're using the root user,and our linked # container has a default "root" password set up and passed through... :) : ${wordpress_DB_USER:=root} if [ "$wordpress_DB_USER" = 'root' ]; then : ${wordpress_DB_PASSWORD:=$MysqL_ENV_MysqL_ROOT_PASSWORD} fi : ${wordpress_DB_NAME:=wordpress} if [ -z "$wordpress_DB_PASSWORD" ]; then echo >&2 'error: missing required wordpress_DB_PASSWORD environment variable' echo >&2 ' Did you forget to -e wordpress_DB_PASSWORD=... ?' echo >&2 echo >&2 ' (Also of interest might be wordpress_DB_USER and wordpress_DB_NAME.)' exit 1 fi if ! [ -e index.PHP -a -e wp-includes/version.PHP ]; then echo >&2 "wordpress not found in $(pwd) - copying now..." if [ "$(ls -A)" ]; then echo >&2 "WARNING: $(pwd) is not empty - press Ctrl+C now if this is an error!" ( set -x; ls -A; sleep 10 ) fi tar cf - --one-file-system -C /usr/src/wordpress . | tar xf - echo >&2 "Complete! wordpress has been successfully copied to $(pwd)" if [ ! -e .htaccess ]; then # NOTE: The "Indexes" option is disabled in the PHP:apache base image cat > .htaccess <<-'EOF' # BEGIN wordpress