Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if a2enconf exists in the postinst script #84

Merged
merged 1 commit into from
Nov 18, 2018
Merged

check if a2enconf exists in the postinst script #84

merged 1 commit into from
Nov 18, 2018

Conversation

mackuba
Copy link
Contributor

@mackuba mackuba commented Oct 23, 2018

I have a /etc/apache2/conf-available directory on my server, because it was created by default during the installation, but I have uninstalled the apache package itself, because I'm using Nginx as my web server. The postinst script however checks for the existence of that config directory and then assumes that Apache is installed and tries to run the a2enconf tool, which is not available on that machine.

So I've added a check to make sure that /usr/sbin/a2enconf actually exists and is executable before calling it.

@mackuba mackuba mentioned this pull request Oct 23, 2018
@mackuba
Copy link
Contributor Author

mackuba commented Oct 23, 2018

Fixes #68

@Findus23
Copy link
Member

Makes sense to me (on my server and notebook without apache /etc/apache2/conf-available exists).

@aureq will need to take a closer look, but it should be fine to merge.

@aureq aureq merged commit 93306f7 into matomo-org:master Nov 18, 2018
@aureq
Copy link
Contributor

aureq commented Nov 18, 2018

Thank you for the patch @mackuba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants