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
refactor of daily.sh #4920
refactor of daily.sh #4920
Conversation
Refactored code of daily.sh. Replaced -ne with "!=", "[" with "[[", enforced better quotes usage, moved daily.php calls to a dedicated function, added support for using $config['log_dir'] from config.php for setting the log directory. Defaults to the value of $config['install_dir'] . '/logs' if $config['log_dir'] is not set.
Auto-Deploy finished, Test PR at http://4920.ci.librenms.org or https://4920.ci.librenms.org |
Major refactor, added name to authors list :p
Auto-Deploy finished, Test PR at http://4920.ci.librenms.org or https://4920.ci.librenms.org |
The inspection completed: No new issues |
Tested and works for me. CentOS 7. bash --version
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu) What have you tested against @Gorian ? |
@laf also CentOS7, same bash version. |
Works for me as far as I can tell. Debian Jessie |
I think we need some older distros to test this on. |
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.
I can't test older, but I can test newer.
GNU bash, version 4.4.0(1)-release (x86_64-pc-linux-gnu)
Tested on |
Tagged to merge in 48 hours. |
Please note
Refactored code of daily.sh. Replaced -ne with "!=", "[" with "[[", enforced better quotes usage, moved daily.php calls to a dedicated function, added support for using $config['log_dir'] from config.php for setting the log directory. Defaults to the value of $config['install_dir'] . '/logs' if $config['log_dir'] is not set. Properly moved all code not in a dedicated function to main().