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

Don´t hardcode PIWIK_PATH in archive.sh #449

Closed
anonymous-matomo-user opened this issue Dec 2, 2008 · 2 comments
Closed

Don´t hardcode PIWIK_PATH in archive.sh #449

anonymous-matomo-user opened this issue Dec 2, 2008 · 2 comments
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@anonymous-matomo-user
Copy link

The path to the Piwik index.php is hardcoded in piwik/misc/cron/archive.sh and therefore needs to be adapted to the correct location everytime I update.

This should be solved in a more user-friendly way.

Lars

@robocoder
Copy link
Contributor

For portability, paths in cron scripts are absolute. If PIWIK_PATH were to be defined in some other config file, the path to this config file would also be an absolute path. Thus, archive.sh would (still) have to be updated each time.

Workaround: rename your locally modified archive.sh and use that file in your crontab. Thus, it won’t be overwritten when you update/upgrade Piwik.

@robocoder
Copy link
Contributor

A fix has been committed for #599 which determines the Piwik path.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants