feature: allow scripts to be run from any working directory #4437

Merged
merged 9 commits into from Sep 14, 2016

Projects

None yet

4 participants

@murrant
Contributor
murrant commented Sep 14, 2016

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

@murrant murrant feature: allow validate.php to be run from any working directory
6766a64
murrant added some commits Sep 14, 2016
@murrant murrant remove redundant realpath() call
7aacd05
@murrant murrant re-add realpath() to remove symbolic links
9dc6131
@murrant murrant realpath() isn't needed...
2017ca7
murrant added some commits Sep 14, 2016
@murrant murrant chdir() in all php scripts in ./ and ./scripts/
2c256de
@murrant murrant update-sql.php clearly is not used, as it was broken.
1208367
@murrant murrant changed the title from feature: allow validate.php to be run from any working directory to feature: allow scripts to be run from any working directory Sep 14, 2016
@murrant murrant Change some scripts to executable
Remove extra chdir() call in snmp-scan.php
596725d
murrant added some commits Sep 14, 2016
@murrant murrant Missed console-ui.php
Kind of fixed console-ui.php help output
b874a0a
@murrant murrant Re-add newline
14c4bfc
@laf laf merged commit d2193f7 into librenms:master Sep 14, 2016

2 checks passed

Auto-Deploy Build finished.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@scrutinizer-notifier

The inspection completed: 6 new issues, 1 updated code elements

@murrant murrant deleted the murrant:validate-from-anywhere branch Sep 14, 2016
@crcro crcro added a commit to crcro/librenms that referenced this pull request Sep 17, 2016
@murrant @crcro murrant + crcro feature: allow scripts to be run from any working directory (#4437)
* feature: allow validate.php to be run from any working directory

* remove redundant realpath() call

* re-add realpath() to remove symbolic links

* realpath() isn't needed...

* chdir() in all php scripts in ./ and ./scripts/

* update-sql.php clearly is not used, as it was broken.

* Change some scripts to executable
Remove extra chdir() call in snmp-scan.php

* Missed console-ui.php
Kind of fixed console-ui.php help output

* Re-add newline
1aea6b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment