diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2016-11-27 07:22:46 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2016-11-27 07:22:46 +0100 |
commit | 9bb8beed93cb28b1bfdcea18534d7ec2dc99918d (patch) | |
tree | a1fc1530dec3971b8350eb646bff182eb88e8a62 /debian/tests/test-server-client | |
parent | 73b95020cb796d845e81487bbd83ec582e9ea9e1 (diff) | |
download | sitesummary-9bb8beed93cb28b1bfdcea18534d7ec2dc99918d.tar.gz sitesummary-9bb8beed93cb28b1bfdcea18534d7ec2dc99918d.tar.bz2 sitesummary-9bb8beed93cb28b1bfdcea18534d7ec2dc99918d.tar.xz |
Adjusted autopkgtest script, prefer service over systemctl when restarting apache2.
Diffstat (limited to 'debian/tests/test-server-client')
-rw-r--r-- | debian/tests/test-server-client | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/debian/tests/test-server-client b/debian/tests/test-server-client index d796d43..347d2fb 100644 --- a/debian/tests/test-server-client +++ b/debian/tests/test-server-client @@ -14,10 +14,16 @@ trap at_exit INT TERM EXIT LC_ALL=C export LC_ALL -# Installing the binaries should set up apache on localhost and the cgi script -# for the sitesummary collector. - -systemctl restart apache2 +# Installing the binary packages should set up apache on localhost and +# the cgi script for the sitesummary collector. But some times the +# install does not do this, because the apt system is sorting the +# postinst invocations so that sitesummary is set up before apache2, +# causing the CGI script to not work. The reason is that sitesummary +# only recommend apache2, and postinst ordering only take dependencies +# into account. A fix using triggers to run what used to run in the +# sitesummary postinst is implemented, and to be sure this take effect +# for apache we restart apache here. +service apache2 restart sitesummary-client |