-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-release-test.sh
executable file
·345 lines (293 loc) · 21.1 KB
/
docker-release-test.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
#!/bin/sh
RELEASEBRANCH="patch5"
SQUASHBRANCH="squashed5"
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="ampachetest"
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-patch5/src/Config/Init/InitializationHandlerConfig.php`
if [ ! $# -eq 0 ]; then
RELEASEVERSION=$1
fi
LOCALIP=$(ip addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v '127.0.0.1' | head -n 1)
DATABASE="ampachetest5"
AMPACHEPASSWORD="]@zRGb_Rs2i'XVc"
echo "Enter your local database user:"
read DATABASEUSER
echo "Enter your local database password:"
read DATABASEPASSWORD
# Shutdown stack
docker-compose -p "release-test" down -v
# remove the old release
rm -rf $AMPACHEDIR/release-test/php*
# php7.4
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php7.4.zip -d $AMPACHEDIR/release-test/php74
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php7.4.zip -d $AMPACHEDIR/release-test/php74_squashed
# php8.0
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.0.zip -d $AMPACHEDIR/release-test/php80
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.0.zip -d $AMPACHEDIR/release-test/php80_squashed
# php8.1
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.1.zip -d $AMPACHEDIR/release-test/php81
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.1.zip -d $AMPACHEDIR/release-test/php81_squashed
# php8.2
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_php8.2.zip -d $AMPACHEDIR/release-test/php82
unzip $AMPACHEDIR/releases/ampache-${RELEASEVERSION}_all_squashed_php8.2.zip -d $AMPACHEDIR/release-test/php82_squashed
# reset perms
# php7.4
chown $UID:33 $AMPACHEDIR/release-test/php74/composer.json
chmod 775 $AMPACHEDIR/release-test/php74/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php74/config
chmod -R 775 $AMPACHEDIR/release-test/php74/config
chown -R $UID:33 $AMPACHEDIR/release-test/php74/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php74/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php74/public/
chmod -R 775 $AMPACHEDIR/release-test/php74/public/
chown $UID:33 $AMPACHEDIR/release-test/php74_squashed/composer.json
chmod 775 $AMPACHEDIR/release-test/php74_squashed/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php74_squashed/config
chmod -R 775 $AMPACHEDIR/release-test/php74_squashed/config
chown -R $UID:33 $AMPACHEDIR/release-test/php74_squashed/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php74_squashed/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php74_squashed/
chmod -R 775 $AMPACHEDIR/release-test/php74_squashed/
# php8.0
chown $UID:33 $AMPACHEDIR/release-test/php80/composer.json
chmod 775 $AMPACHEDIR/release-test/php80/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php80/config
chmod -R 775 $AMPACHEDIR/release-test/php80/config
chown -R $UID:33 $AMPACHEDIR/release-test/php80/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php80/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php80/public/
chmod -R 775 $AMPACHEDIR/release-test/php80/public/
chown $UID:33 $AMPACHEDIR/release-test/php80_squashed/composer.json
chmod 775 $AMPACHEDIR/release-test/php80_squashed/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php80_squashed/config
chmod -R 775 $AMPACHEDIR/release-test/php80_squashed/config
chown -R $UID:33 $AMPACHEDIR/release-test/php80_squashed/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php80_squashed/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php80_squashed/
chmod -R 775 $AMPACHEDIR/release-test/php80_squashed/
# php8.1
chown $UID:33 $AMPACHEDIR/release-test/php81/composer.json
chmod 775 $AMPACHEDIR/release-test/php81/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php81/config
chmod -R 775 $AMPACHEDIR/release-test/php81/config
chown -R $UID:33 $AMPACHEDIR/release-test/php81/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php81/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php81/public/
chmod -R 775 $AMPACHEDIR/release-test/php81/public/
chown $UID:33 $AMPACHEDIR/release-test/php81_squashed/composer.json
chmod 775 $AMPACHEDIR/release-test/php81_squashed/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php81_squashed/config
chmod -R 775 $AMPACHEDIR/release-test/php81_squashed/config
chown -R $UID:33 $AMPACHEDIR/release-test/php81_squashed/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php81_squashed/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php81_squashed/
chmod -R 775 $AMPACHEDIR/release-test/php81_squashed/
# php8.2
chown $UID:33 $AMPACHEDIR/release-test/php82/composer.json
chmod 775 $AMPACHEDIR/release-test/php82/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php82/config
chmod -R 775 $AMPACHEDIR/release-test/php82/config
chown -R $UID:33 $AMPACHEDIR/release-test/php82/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php82/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php82/public/
chmod -R 775 $AMPACHEDIR/release-test/php82/public/
chown $UID:33 $AMPACHEDIR/release-test/php82_squashed/composer.json
chmod 775 $AMPACHEDIR/release-test/php82_squashed/composer.json
chown -R $UID:33 $AMPACHEDIR/release-test/php82_squashed/config
chmod -R 775 $AMPACHEDIR/release-test/php82_squashed/config
chown -R $UID:33 $AMPACHEDIR/release-test/php82_squashed/vendor/
chmod -R 775 $AMPACHEDIR/release-test/php82_squashed/vendor/
chown -R $UID:33 $AMPACHEDIR/release-test/php82_squashed/
chmod -R 775 $AMPACHEDIR/release-test/php82_squashed/
chown $UID:33 $AMPACHEDIR/release-test/php74
chmod 775 $AMPACHEDIR/release-test/php74
chown $UID:33 $AMPACHEDIR/release-test/php74_squashed
chmod 775 $AMPACHEDIR/release-test/php74_squashed
chown $UID:33 $AMPACHEDIR/release-test/php80
chmod 775 $AMPACHEDIR/release-test/php80
chown $UID:33 $AMPACHEDIR/release-test/php80_squashed
chmod 775 $AMPACHEDIR/release-test/php80_squashed
chown $UID:33 $AMPACHEDIR/release-test/php81
chmod 775 $AMPACHEDIR/release-test/php81
chown $UID:33 $AMPACHEDIR/release-test/php81_squashed
chmod 775 $AMPACHEDIR/release-test/php81_squashed
chown $UID:33 $AMPACHEDIR/release-test/php82
chmod 775 $AMPACHEDIR/release-test/php82
chown $UID:33 $AMPACHEDIR/release-test/php82_squashed
chmod 775 $AMPACHEDIR/release-test/php82_squashed
# ReLaunch all the containers
docker-compose -p "release-test" -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 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"
ADDMUSICCATALOGCOMMAND="php /var/www/html/bin/cli run:addCatalog music /media/music"
ADDPODCASTCATALOGCOMMAND="php /var/www/html/bin/cli run:addCatalog podcast /media/podcast podcast"
ADDVIDEOCATALOGCOMMAND="php /var/www/html/bin/cli run:addCatalog video /media/video clip"
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-test-testampache74-1 ${INSTALLCOMMAND}74
docker exec -u root -it release-test-testampache74-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache74-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache74-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache74-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache74-1 ${ADDVIDEOCATALOGCOMMAND}
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-test-testampache80-1 ${INSTALLCOMMAND}80
docker exec -u root -it release-test-testampache80-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache80-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache80-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache80-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache80-1 ${ADDVIDEOCATALOGCOMMAND}
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-test-testampache81-1 ${INSTALLCOMMAND}81
docker exec -u root -it release-test-testampache81-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache81-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache81-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache81-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache81-1 ${ADDVIDEOCATALOGCOMMAND}
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-test-testampache82-1 ${INSTALLCOMMAND}82
docker exec -u root -it release-test-testampache82-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache82-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache82-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache82-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache82-1 ${ADDVIDEOCATALOGCOMMAND}
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"
ADDMUSICCATALOGCOMMAND="php /var/www/html/public/bin/cli run:addCatalog music /media/music"
ADDPODCASTCATALOGCOMMAND="php /var/www/html/public/bin/cli run:addCatalog podcast /media/podcast podcast"
ADDVIDEOCATALOGCOMMAND="php /var/www/html/public/bin/cli run:addCatalog video /media/video clip"
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-test-testampache74_squashed-1 ${INSTALLCOMMAND}74s
docker exec -u root -it release-test-testampache74_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache74_squashed-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache74_squashed-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache74_squashed-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache74_squashed-1 ${ADDVIDEOCATALOGCOMMAND}
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-test-testampache80_squashed-1 ${INSTALLCOMMAND}80s
docker exec -u root -it release-test-testampache80_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache80_squashed-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache80_squashed-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache80_squashed-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache80_squashed-1 ${ADDVIDEOCATALOGCOMMAND}
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-test-testampache81_squashed-1 ${INSTALLCOMMAND}81s
docker exec -u root -it release-test-testampache81_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache81_squashed-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache81_squashed-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache81_squashed-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache81_squashed-1 ${ADDVIDEOCATALOGCOMMAND}
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-test-testampache82_squashed-1 ${INSTALLCOMMAND}82s
docker exec -u root -it release-test-testampache82_squashed-1 ${USERCOMMAND}
docker exec -u root -it release-test-testampache82_squashed-1 ${UPDATEDBCOMMAND}
docker exec -u root -it release-test-testampache82_squashed-1 ${ADDMUSICCATALOGCOMMAND}
docker exec -u root -it release-test-testampache82_squashed-1 ${ADDPODCASTCATALOGCOMMAND}
docker exec -u root -it release-test-testampache82_squashed-1 ${ADDVIDEOCATALOGCOMMAND}
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php74/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php74_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php80/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php80_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php81/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php81_squashed/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php82/config/ampache.cfg.php
sed -i "s/;allow_public_registration = \"true\"/allow_public_registration = \"true\"/g" $AMPACHEDIR/release-test/php82_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php74/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php74_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php80/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php80_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php81/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php81_squashed/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php82/config/ampache.cfg.php
sed -i "s/;user_no_email_confirm = \"true\"/user_no_email_confirm = \"true\"/g" $AMPACHEDIR/release-test/php82_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php74/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php74_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php80/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php80_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php81/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php81_squashed/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php82/config/ampache.cfg.php
sed -i "s/;licensing = \"true\"/licensing = \"true\"/g" $AMPACHEDIR/release-test/php82_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php74/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php74_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php80/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php80_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php81/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php81_squashed/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php82/config/ampache.cfg.php
sed -i "s/;label = \"true\"/label = \"true\"/g" $AMPACHEDIR/release-test/php82_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php74/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php74_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php80/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php80_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php81/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php81_squashed/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php82/config/ampache.cfg.php
sed -i "s/;debug = \"true\"/debug = \"true\"/g" $AMPACHEDIR/release-test/php82_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php74.log\"/g" $AMPACHEDIR/release-test/php74/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php74s.log\"/g" $AMPACHEDIR/release-test/php74_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php80.log\"/g" $AMPACHEDIR/release-test/php80/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php80s.log\"/g" $AMPACHEDIR/release-test/php80_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php81.log\"/g" $AMPACHEDIR/release-test/php81/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php81s.log\"/g" $AMPACHEDIR/release-test/php81_squashed/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php82.log\"/g" $AMPACHEDIR/release-test/php82/config/ampache.cfg.php
sed -i "s/log_filename = \"%name\.%Y%m%d\.log\"/log_filename = \"php82s.log\"/g" $AMPACHEDIR/release-test/php82_squashed/config/ampache.cfg.php
echo
echo "Testing $RELEASEVERSION ampache74"
#release-test-testampache74
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:17480 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:17480 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache74_squashed"
#release-test-testampache74_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:17481 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:17481 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache80"
#release-test-testampache80
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:18080 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:18080 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache80_squashed"
#release-test-testampache80_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:18081 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:18081 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache81"
#release-test-testampache81
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:18180 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:18180 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache81_squashed"
#release-test-testampache81_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:18181 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:18181 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache82"
#release-test-testampache82
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:18280 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:18280 $DEMOPASSWORD admin 1
echo
echo "Testing $RELEASEVERSION ampache82_squashed"
#release-test-testampache82_squashed
DEMOPASSWORD=$(python3 $AMPACHEDIR/python/release_test5.py http://${LOCALIP}:18281 admin $AMPACHEPASSWORD)
python3 $AMPACHEDIR/python/build_all5.py http://${LOCALIP}:18281 $DEMOPASSWORD admin 1