-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-release-test6.sh
executable file
·427 lines (364 loc) · 28 KB
/
docker-release-test6.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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
#!/bin/sh
RELEASEBRANCH="patch6"
SQUASHBRANCH="squashed6"
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="ampachetest6"
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-patch6/src/Config/Init/InitializationHandlerConfig.php`
if [ ! $# -eq 0 ]; then
RELEASEVERSION=$1
fi
echo "Enter your local database user:"
read DATABASEUSER
echo "Enter your local database password:"
read DATABASEPASSWORD
# Shutdown stack
docker-compose -p "release-test6" down -v
if [ ! -d $AMPACHEDIR/release-test ]; then
mkdir $AMPACHEDIR/release-test
fi
if [ ! -d $AMPACHEDIR/release-test/6 ]; then
mkdir $AMPACHEDIR/release-test/6
fi
# remove the old release
rm -rf $AMPACHEDIR/release-test/6/php*
# php7.4
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php7.4.zip -d $AMPACHEDIR/release-test/6/php74
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php7.4.zip -d $AMPACHEDIR/release-test/6/php74_squashed
# php8.0
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.0.zip -d $AMPACHEDIR/release-test/6/php80
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.0.zip -d $AMPACHEDIR/release-test/6/php80_squashed
# php8.1
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.1.zip -d $AMPACHEDIR/release-test/6/php81
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.1.zip -d $AMPACHEDIR/release-test/6/php81_squashed
# php8.2
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.2.zip -d $AMPACHEDIR/release-test/6/php82
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.2.zip -d $AMPACHEDIR/release-test/6/php82_squashed
# php8.3
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.3.zip -d $AMPACHEDIR/release-test/6/php83
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.3.zip -d $AMPACHEDIR/release-test/6/php83_squashed
# reset perms
sudo chown -R $UID:33 $AMPACHEDIR/docker/media
sudo chmod -R 775 $AMPACHEDIR/docker/media
sudo chown $UID:33 $AMPACHEDIR/docker/log/*
sudo chmod 775 $AMPACHEDIR/docker/log/*
# php7.4
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php74/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php74/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php74/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php74/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php74/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php74/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php74/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php74/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php74_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php74_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php74_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php74_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php74_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php74_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php74_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php74_squashed/
# php8.0
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php80/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php80/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php80/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php80/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php80/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php80/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php80/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php80/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php80_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php80_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php80_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php80_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php80_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php80_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php80_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php80_squashed/
# php8.1
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php81/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php81/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php81/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php81/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php81/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php81/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php81/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php81/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php81_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php81_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php81_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php81_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php81_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php81_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php81_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php81_squashed/
# php8.2
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php82/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php82/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php82/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php82/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php82/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php82/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php82/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php82/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php82_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php82_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php82_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php82_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php82_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php82_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php82_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php82_squashed/
# php8.3
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php83/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php83/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php83/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php83/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php83/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php83/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php83/public/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php83/public/
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php83_squashed/composer.json
sudo chmod 775 $AMPACHEDIR/release-test/6/php83_squashed/composer.json
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php83_squashed/config
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php83_squashed/config
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php83_squashed/vendor/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php83_squashed/vendor/
sudo chown -R $UID:33 $AMPACHEDIR/release-test/6/php83_squashed/
sudo chmod -R 775 $AMPACHEDIR/release-test/6/php83_squashed/
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php74
sudo sudo chmod 775 $AMPACHEDIR/release-test/6/php74
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php74_squashed
sudo chmod 775 $AMPACHEDIR/release-test/6/php74_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php80
sudo chmod 775 $AMPACHEDIR/release-test/6/php80
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php80_squashed
sudo chmod 775 $AMPACHEDIR/release-test/6/php80_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php81
sudo chmod 775 $AMPACHEDIR/release-test/6/php81
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php81_squashed
sudo chmod 775 $AMPACHEDIR/release-test/6/php81_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php82
sudo chmod 775 $AMPACHEDIR/release-test/6/php82
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php82_squashed
sudo chmod 775 $AMPACHEDIR/release-test/6/php82_squashed
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php83
sudo chmod 775 $AMPACHEDIR/release-test/6/php83
sudo chown $UID:33 $AMPACHEDIR/release-test/6/php83_squashed
sudo chmod 775 $AMPACHEDIR/release-test/6/php83_squashed
# ReLaunch all the containers
docker-compose -p "release-test6" \
-f docker/test-docker-compose74.yml -f docker/test-docker-compose74_squashed.yml \
-f docker/test-docker-compose80.yml -f docker/test-docker-compose80_squashed.yml \
-f docker/test-docker-compose81.yml -f docker/test-docker-compose81_squashed.yml \
-f docker/test-docker-compose82.yml -f docker/test-docker-compose82_squashed.yml \
-f docker/test-docker-compose83.yml -f docker/test-docker-compose83_squashed.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 AMPACHE on PHP7.4"
# php7.4
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}74 -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test6-testampache74-1 ${INSTALLCOMMAND}74
docker exec -u root -it release-test6-testampache74-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache74-1 ${UPDATEDBCOMMAND}
echo "INSTALLING AMPACHE on PHP8.0"
# php8.0
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}80 -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test6-testampache80-1 ${INSTALLCOMMAND}80
docker exec -u root -it release-test6-testampache80-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache80-1 ${UPDATEDBCOMMAND}
echo "INSTALLING AMPACHE on PHP8.1"
# php8.1
INSTALLCOMMAND="php /var/www/html/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}81 -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test6-testampache81-1 ${INSTALLCOMMAND}81
docker exec -u root -it release-test6-testampache81-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache81-1 ${UPDATEDBCOMMAND}
echo "INSTALLING 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-test6-testampache82-1 ${INSTALLCOMMAND}82
docker exec -u root -it release-test6-testampache82-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache82-1 ${UPDATEDBCOMMAND}
echo "INSTALLING 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-test6-testampache83-1 ${INSTALLCOMMAND}83
docker exec -u root -it release-test6-testampache83-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache83-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 PHP7.4"
INSTALLCOMMAND="php /var/www/html/public/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}74s -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test6-testampache74_squashed-1 ${INSTALLCOMMAND}74s
docker exec -u root -it release-test6-testampache74_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache74_squashed-1 ${UPDATEDBCOMMAND}
echo "INSTALLING SQUASHED AMPACHE on PHP8.0"
INSTALLCOMMAND="php /var/www/html/public/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}80s -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test6-testampache80_squashed-1 ${INSTALLCOMMAND}80s
docker exec -u root -it release-test6-testampache80_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache80_squashed-1 ${UPDATEDBCOMMAND}
echo "INSTALLING SQUASHED AMPACHE on PHP8.1"
INSTALLCOMMAND="php /var/www/html/public/bin/installer install -f -U $DATABASEUSER -P $DATABASEPASSWORD -H $LOCALIP -u ${DATABASE}81s -p $DATABASE -d $DATABASE"
docker exec -u root -it release-test6-testampache81_squashed-1 ${INSTALLCOMMAND}81s
docker exec -u root -it release-test6-testampache81_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache81_squashed-1 ${UPDATEDBCOMMAND}
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-test6-testampache82_squashed-1 ${INSTALLCOMMAND}82s
docker exec -u root -it release-test6-testampache82_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache82_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-test6-testampache83_squashed-1 ${INSTALLCOMMAND}83s
docker exec -u root -it release-test6-testampache83_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test6-testampache83_squashed-1 ${UPDATEDBCOMMAND}
sed -i "s/session_name = \"ampache\"/session_name = \"6php74\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php74_squashed\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php80\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php80_squashed\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php81\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php81_squashed\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php82\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php82_squashed\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php83\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/session_name = \"ampache\"/session_name = \"6php83_squashed\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;captcha_public_reg = \"true\"/captcha_public_reg = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php74.log\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php74s.log\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php80.log\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php80s.log\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php81.log\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php81s.log\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php82.log\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php82s.log\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php83.log\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"6php83s.log\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php74/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php74_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php80/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php80_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php81/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php81_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php82/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php82_squashed/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php83/config/ampache.cfg.php
sed -i "s/;api_debug_handler = \"true\"/api_debug_handler = \"true\"/g" $AMPACHEDIR/release-test/6/php83_squashed/config/ampache.cfg.php
echo
echo "Testing $RELEASEVERSION ampache74"
#release-test6-testampache74
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:17480 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:17480 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache74_squashed"
#release-test6-testampache74_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:17481 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:17481 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache80"
#release-test6-testampache80
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18080 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18080 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache80_squashed"
#release-test6-testampache80_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18081 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18081 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache81"
#release-test6-testampache81
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18180 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18180 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache81_squashed"
#release-test6-testampache81_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18181 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18181 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache82"
#release-test6-testampache82
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18280 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18280 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache82_squashed"
#release-test6-testampache82_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 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache83"
#release-test6-testampache83
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test6.py http://${LOCALIP}:18380 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all6.py http://${LOCALIP}:18380 $DEMOPASSWORD admin 1 $RELEASEVERSION
echo
echo "Testing $RELEASEVERSION ampache83_squashed"
#release-test6-testampache83_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 $RELEASEVERSION