File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
modules/services/web-apps Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,10 @@ in {
183183 chmod -R u+rwX,g+rwX,o-rwx "${ dataDir } "
184184
185185 # check whether user setup has already been done
186- if test -f "${ dataDir } /config/config.ini.php"; then
186+ if test -f "${ dataDir } /config/config.ini.php" &&
187+ # since matomo-5.2.0, the config.ini.php is already created at first
188+ # installer page access https://github.com/matomo-org/matomo/issues/22932
189+ grep -q -F "[database]" "${ dataDir } /config/config.ini.php"; then
187190 # then execute possibly pending database upgrade
188191 matomo-console core:update --yes
189192 fi
Original file line number Diff line number Diff line change 3737 machine.wait_for_unit("phpfpm-matomo.service")
3838 machine.wait_for_unit("nginx.service")
3939
40+ with subtest("matomo.js reachable via HTTP"):
41+ machine.succeed("curl -sSfk http://machine/matomo.js")
42+
43+ with subtest("js/piwik.js reachable via HTTP"):
44+ machine.succeed("curl -sSfk http://machine/js/piwik.js")
45+
46+ with subtest("matomo.php (API) reachable via HTTP"):
47+ machine.succeed("curl -sSfk http://machine/matomo.php")
48+
4049 # without the grep the command does not produce valid utf-8 for some reason
4150 with subtest("welcome screen loads"):
4251 machine.succeed(
4352 "curl -sSfL http://localhost/ | grep '<title>Matomo[^<]*Installation'"
4453 )
54+
55+ with subtest("killing the phpfpm process should trigger an automatic restart"):
56+ machine.succeed("systemctl kill -s KILL phpfpm-matomo")
57+ machine.sleep(1)
58+ machine.wait_for_unit("phpfpm-matomo.service")
4559 '' ;
4660 } ;
4761in
You can’t perform that action at this time.
0 commit comments