Files
librenms-librenms/daily.sh
Tony Murray 96d65d1cc3 Extra daily.sh safety (#9821)
If the php update channel check fails, it returns an error code 255...
This isn't handled by daily.sh, so it doesn't update code at all.

If updates are disabled (0), skip.
If master (1) or in the php version jail do a git pull update
Otherwise update to the latest tagged release

This should give a "safe" fallback if php isn't working.  Might cause flipping back and forth if the user's error isn't (or can't be) fixed by code changes.
2019-02-24 15:47:06 +01:00

11 KiB
Executable File