Commit Graph
12 Commits
Author SHA1 Message Date
Zane C. Bowers-HadleyandGitHub 330237af97 add a line to uncomment if using as a agent (#471) 2023-06-12 19:16:24 -06:00
WheelandGitHub 8efec5e2dc Update osupdate (#466)
#444 broke osupdate script
2023-06-12 19:06:57 -06:00
Shao Yu-Lung (Allen)andGitHub af28a4fcca feat: OS Updates support agent (#444) 2023-04-28 08:50:07 -05:00
Ives van der FlaasandGitHub ba373fc2dc Add support for PhotonOS's tdnf. (#411)
Example output:

root [ /home/ives ]# tdnf -q check-update
Linux-PAM.x86_64                             1.4.0-5.ph4          photon-updates
cloud-init.noarch                           22.2.2-1.ph4          photon-updates
curl.x86_64                                 7.83.1-2.ph4          photon-updates
curl-libs.x86_64                            7.83.1-2.ph4          photon-updates
openssl.x86_64                               3.0.3-3.ph4          photon-updates

So a simple line count should suffice. Output of the script:

root [ /home/ives ]# /bin/docker-osupdate
5
2022-07-10 11:51:11 +02:00
ThermiandGitHub 92f9acbb9f osupdates: on Arch, try to use checkupdates (#391) 2022-01-30 03:19:52 +01:00
4e09377661 Minor script reverts (osupdate, phpfpm) (#362)
* Revert changes made in #355 that broke the script.

* Revert partial changes made in #356

By just removing the quotes in line 81 i could make the script work again

* osupdate yum revert

Realized i had a centos to test

* Fix curl error

`curl: (3) URL using bad/illegal format or missing URL`
Not sure how to properly fix it but moving the hardcode flags to the variable so its not empty did fix it. The curl error caused to push down all values 1 line which made them mismatch in librenms.

* Update osupdate

* Update phpfpmsp

Co-authored-by: Jellyfrog <[email protected]>
2021-03-26 02:14:43 +01:00
JellyfrogandGitHub 61064dc9fe Cleanup some code (#355)
* Format with isort

* Format with Black

* Fix CRLF

* Format with shellcheck

* Fix some warning

* Fix PHP style

* Dont modifiy check_mk files

* Fixes
2021-03-18 12:24:30 +01:00
Clark ChenandGitHub 045a506d1c Add support for Alpine (apk) (#332)
* Add support for Alpine (apk)

* Minor fix

Add back #!/usr/bin/env bash
2020-09-24 02:11:08 +02:00
Konstantin V BekreyevandGitHub 174d94777f add FreeBSD to osupdate (#288)
* Update osupdate

osupdate for FreeBSD

* Update osupdate
2020-04-21 12:30:37 -05:00
sparknshandTony Murray 8d66211adc Fix package manager detection (#204)
* Fix package manager detection

* use release file for os detection

* Use command to to validate package manager type

* check if exists and the execute permission is granted

* make script more portable
2018-10-25 06:17:42 -05:00
sparknshandTony Murray 3dada041e4 Fix binary operator expected error (#203) 2018-10-18 09:37:10 -05:00
sparknshandNeil Lathwood ccb244aa09 osupdate script clean up (#199)
- Change script name for simplify of configuration management orchestration scripts.
- Update code syntax.
2018-10-17 17:28:39 +01:00