OSX-Monitoring-Tools icon indicating copy to clipboard operation
OSX-Monitoring-Tools copied to clipboard

10.6 support for check_osx_hostname.sh

Open yvangodard opened this issue 11 years ago • 0 comments

Jus a little thing. In 'check_osx_hostname.sh', you define checkHostname=sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/changeip -checkhostname but ... if you want your script to work also on 10.6 ... you should add a condition/test ... besause, on 10.6, changeip is stored at /usr/sbin/changeip (you should use /usr/bin/sw_vers or uname -r)

yvangodard avatar Feb 14 '15 09:02 yvangodard