jprochazka / adsb-exchange

ADS-B Exchange Linux Setup Scripts
http://www.adsbexchange.com
MIT License
48 stars 47 forks source link

ntpd install #43

Open target-drone opened 4 years ago

target-drone commented 4 years ago

Adding ntpd is a great idea, but some of us already use chrony.
Can add a detection to setup.sh so it doesn't replace it:

setup.sh, line 141

required_packages="build-essential debhelper python python3-dev socat"
    if [ $(dpkg-query -W -f='${Status}' chronyc 2>/dev/null | grep -c "ok installed") -eq 0 ];
    then
        required_packages="${required_packages} chronyc"
    else
        required_packages="${required_packages} ntp"
    fi

cheers