AnalogJ / scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
MIT License
4.78k stars 158 forks source link

Debian/Ubuntu/Centos Install packages using FPM #84

Open flying-sausages opened 3 years ago

flying-sausages commented 3 years ago

Heya, I made install scripts for scrutiny for a seedbox toolset I'm contributing to. There's also a removal script. I've tested this on a VM and it works insofar as I can't get actual smart data to show because VM is too virtualised.

You can find the files here https://github.com/liaralabs/swizzin/pull/418/files

They should be extremely easy to adapt (i.e. remove $log redirects or define the variable yourself and use a normal apt function, that should be enough I think), probably also for non-Debian derivatives. You really just need curl and a package manager.

I also do away with crontab as it's a pain and use systemd timers instead

Let me know if you'd like me to adapt an installer for your specific application that's not dependent on a toolset!

AnalogJ commented 3 years ago

Hm, I actually was planning on using FPM to build deb & rpm packages. If you'd be interested in contributing something like that, I'd definitely appreciate it 👍

flying-sausages commented 3 years ago

No promises but I'll see if I can take a look at it in the coming two weeks.