-
Notifications
You must be signed in to change notification settings - Fork 27
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
Piwik Debian package: Apache2 improvements #59
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @dg01d for this PR. I've added a few comments to make things more conform with Debian.
debian/piwik.postinst
Outdated
if [ ! -e /etc/apache2/conf-available/piwik.conf ]; | ||
then | ||
ln -s /etc/piwik/apache.conf /etc/apache2/conf-available/piwik.conf | ||
ln -s /etc/apache2/conf-available/piwik.conf /etc/apache2/conf-enabled/piwik.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a2enconf --maintmode piwik
should be called instead.
debian/piwik.postrm
Outdated
|
||
if [ -L /etc/apache2/conf-available/piwik.conf ]; | ||
then | ||
rm -f /etc/apache2/conf-available/piwik.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a2disconf --maintmode piwik
should be called instead
debian/piwik.postrm
Outdated
if [ -L /etc/apache2/conf-available/piwik.conf ]; | ||
then | ||
rm -f /etc/apache2/conf-available/piwik.conf | ||
if [ -L /etc/apache2/conf-enabled/piwik.conf ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed after a2disconf
is called.
Made those changes, aureq. thanks for the positive feedback. |
@dg01d Thanks, that's now merged. Following your work, the package attempts to be smarter by detecting previous installations. |
Patches following:
piwik.postinst
&piwik.rminst
Inserts logic to deal with Debian 8+
/etc/apache2/conf-available
configuration locationconf/apache.conf
References
/etc/apache2/conf-available
in header comments