-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-release-test7.sh
executable file
·398 lines (337 loc) · 26.1 KB
/
docker-release-test7.sh
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
#!/bin/sh
RELEASEBRANCH="patch7"
SQUASHBRANCH="squashed7"
CLIENTBRANCH="client7"
AMPACHEDIR=$PWD
COMPOSERPATH="/usr/local/bin/composer"
LOCALIP=$(ip addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v '127.0.0.1' | head -n 1)
DATABASE="ampachetest7"
AMPACHEPASSWORD="]@zRGb_Rs2i'XVc"
if [ ! -f $COMPOSERPATH ]; then
COMPOSERPATH="$AMPACHEDIR/docker/composer"
wget -q -O $COMPOSERPATH https://getcomposer.org/download/latest-stable/composer.phar
chmod +x $COMPOSERPATH
fi
RELEASEVERSION=`grep -oP '[0-9]+\.[0-9]+\.[0-9]+' $AMPACHEDIR/ampache-patch7/src/Config/Init/InitializationHandlerConfig.php`
if [ ! $# -eq 0 ]; then
RELEASEVERSION=$1
fi
APIVERSION=`grep -oP '[0-9]+\.[0-9]+\.[0-9]+' $AMPACHEDIR/ampache-patch7/src/Module/Api/Api.php`
if [ ! $# -eq 0 ]; then
APIVERSION=$1
fi
echo "Enter your local database user:"
read DATABASEUSER
echo "Enter your local database password:"
read DATABASEPASSWORD
# Shutdown stack
docker-compose -p "release-test7" down -v
if [ ! -d $AMPACHEDIR/release-test ]; then
mkdir $AMPACHEDIR/release-test
fi
if [ ! -d $AMPACHEDIR/release-test/7 ]; then
mkdir $AMPACHEDIR/release-test/7
fi
# remove the old release
rm -rf $AMPACHEDIR/release-test/7/php*
# php8.2
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.2.zip -d $AMPACHEDIR/release-test/7/php82
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.2.zip -d $AMPACHEDIR/release-test/7/php82_squashed
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_client_php8.2.zip -d $AMPACHEDIR/release-test/7/php82_client
# php8.3
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.3.zip -d $AMPACHEDIR/release-test/7/php83
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.3.zip -d $AMPACHEDIR/release-test/7/php83_squashed
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_client_php8.3.zip -d $AMPACHEDIR/release-test/7/php83_client
# php8.4
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.4.zip -d $AMPACHEDIR/release-test/7/php84
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.4.zip -d $AMPACHEDIR/release-test/7/php84_squashed
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_client_php8.4.zip -d $AMPACHEDIR/release-test/7/php84_client
# reset perms
sudo chown -R $UID:33 $AMPACHEDIR/docker/media
sudo chmod -R 775 $AMPACHEDIR/docker/media
# php8.2
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php82/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php82/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php82_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php82_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82_squashed/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php82_client/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php82_client/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82_client/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82_client/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82_client/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82_client/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php82_client/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php82_client/
# php8.3
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php83/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php83_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83_squashed/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83_client/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php83_client/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83_client/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83_client/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83_client/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83_client/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php83_client/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php83_client/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83
sudo chmod 775 $AMPACHEDIR/release-test/7/php83
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83_squashed
sudo chmod 775 $AMPACHEDIR/release-test/7/php83_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83_client
sudo chmod 775 $AMPACHEDIR/release-test/7/php83_client
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83
sudo chmod 775 $AMPACHEDIR/release-test/7/php83
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83_squashed
sudo chmod 775 $AMPACHEDIR/release-test/7/php83_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php83_client
sudo chmod 775 $AMPACHEDIR/release-test/7/php83_client
# php8.4
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php84/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php8$/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php84_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php8$_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84_squashed/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84_client/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/7/php84_client/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84_client/config
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84_client/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84_client/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84_client/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/7/php84_client/
sudo chmod -R 775 $AMPACHEDIR/release-test/7/php84_client/
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84
sudo chmod 775 $AMPACHEDIR/release-test/7/php84
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84_squashed
sudo chmod 775 $AMPACHEDIR/release-test/7/php84_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84_client
sudo chmod 775 $AMPACHEDIR/release-test/7/php84_client
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84
sudo chmod 775 $AMPACHEDIR/release-test/7/php84
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84_squashed
sudo chmod 775 $AMPACHEDIR/release-test/7/php84_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/7/php84_client
sudo chmod 775 $AMPACHEDIR/release-test/7/php84_client
# ReLaunch all the containers
docker-compose -p "release-test7" \
-f docker/test7-docker-compose82.yml -f docker/test7-docker-compose82_squashed.yml -f docker/test7-docker-compose82_client.yml \
-f docker/test7-docker-compose83.yml -f docker/test7-docker-compose83_squashed.yml -f docker/test7-docker-compose83_client.yml \
-f docker/test7-docker-compose84.yml -f docker/test7-docker-compose84_squashed.yml -f docker/test7-docker-compose84_client.yml \
up -d --build
# Install DB and add the admin user
USERCOMMAND="php /var/www/html/bin/cli admin:addUser admin -p $AMPACHEPASSWORD -e [email protected] -l 100"
UPDATEDBCOMMAND="php /var/www/html/bin/cli admin:updateDatabase -e"
echo "INSTALLING PUBLIC AMPACHE on PHP8.2"
# php8.2
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}82 -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache82-1 ${INSTALLCOMMAND}82
docker exec -u root -it release-test7-test7ampache82-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache82-1 ${UPDATEDBCOMMAND}
echo "INSTALLING PUBLIC AMPACHE on PHP8.3"
# php8.3
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}83 -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache83-1 ${INSTALLCOMMAND}83
docker exec -u root -it release-test7-test7ampache83-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache83-1 ${UPDATEDBCOMMAND}
echo "INSTALLING PUBLIC AMPACHE on PHP8.4"
# php8.4
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}84 -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache84-1 ${INSTALLCOMMAND}84
docker exec -u root -it release-test7-test7ampache84-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache84-1 ${UPDATEDBCOMMAND}
USERCOMMAND="php /var/www/html/public/bin/cli admin:addUser admin -p $AMPACHEPASSWORD -e [email protected] -l 100"
UPDATEDBCOMMAND="php /var/www/html/public/bin/cli admin:updateDatabase -e"
echo "INSTALLING SQUASHED AMPACHE on PHP8.2"
INSTALLCOMMAND="php /var/www/html/public/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}82s -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache82_squashed-1 ${INSTALLCOMMAND}82s
docker exec -u root -it release-test7-test7ampache82_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache82_squashed-1 ${UPDATEDBCOMMAND}
echo "INSTALLING SQUASHED AMPACHE on PHP8.3"
INSTALLCOMMAND="php /var/www/html/public/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}83s -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache83_squashed-1 ${INSTALLCOMMAND}83s
docker exec -u root -it release-test7-test7ampache83_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache83_squashed-1 ${UPDATEDBCOMMAND}
echo "INSTALLING SQUASHED AMPACHE on PHP8.4"
INSTALLCOMMAND="php /var/www/html/public/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}84s -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache84_squashed-1 ${INSTALLCOMMAND}84s
docker exec -u root -it release-test7-test7ampache84_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache84_squashed-1 ${UPDATEDBCOMMAND}
USERCOMMAND="php /var/www/html/bin/cli admin:addUser admin -p $AMPACHEPASSWORD -e [email protected] -l 100"
UPDATEDBCOMMAND="php /var/www/html/bin/cli admin:updateDatabase -e"
echo "INSTALLING CLIENT AMPACHE on PHP8.2"
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}82c -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache82_client-1 ${INSTALLCOMMAND}82c
docker exec -u root -it release-test7-test7ampache82_client-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache82_client-1 ${UPDATEDBCOMMAND}
echo "INSTALLING CLIENT AMPACHE on PHP8.3"
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}83c -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache83_client-1 ${INSTALLCOMMAND}83c
docker exec -u root -it release-test7-test7ampache83_client-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache83_client-1 ${UPDATEDBCOMMAND}
echo "INSTALLING CLIENT AMPACHE on PHP8.4"
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}84c -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test7-test7ampache84_client-1 ${INSTALLCOMMAND}84c
docker exec -u root -it release-test7-test7ampache84_client-1 ${USERCOMMAND}
docker exec -u root -it release-test7-test7ampache84_client-1 ${UPDATEDBCOMMAND}
sed -i "s/session_name = \"ampache\"/session_name = \"7php82\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php82squashed\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php82client\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php83\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php83squashed\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php83client\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php84\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php84squashed\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"7php84client\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php82.log\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php82s.log\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php82c.log\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php83.log\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php83s.log\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php83c.log\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php84.log\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php84s.log\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"7php84c.log\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php82/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php82_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php82_client/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php83/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php83_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php83_client/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php84/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php84_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/7/php84_client/config/ampache.cfg.php
echo
echo "Testing $RELEASEVERSION ampache82"
#release-test7-test7ampache82
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18280 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18280 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION ampache82_squashed"
#release-test7-test7ampache82_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18281 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18281 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION php82_client"
#release-test7-test7php82_client
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18282 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18282 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION ampache83"
#release-test7-test7ampache83
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18380 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18380 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION ampache83_squashed"
#release-test7-test7ampache83_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18381 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18381 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION php83_client"
#release-test7-test7php83_client
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18382 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18382 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION ampache84"
#release-test7-test7ampache84
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18480 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18480 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION ampache84_squashed"
#release-test7-test7ampache84_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18481 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18481 $DEMOPASSWORD admin 1 $APIVERSION
echo
echo "Testing $RELEASEVERSION php84_client"
#release-test7-test7php84_client
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18482 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18482 $DEMOPASSWORD admin 1 $APIVERSION