#!/bin/bash

if dpkg-query -s eole-ad-dc-pkg >/dev/null 2>&1 ; then
    # Seth
    apt -y install eole-ad-dc eole-ad-dc-pkg
elif dpkg-query -s eole-ad-dc >/dev/null 2>&1 ; then
    # AmonEcole
    apt -y -f install systemd-timesyncd eole-ad-dc
    rm -f /var/lib/creole/smb-ad.conf
    systemctl restart creoled
else
    # Other
    apt -y install systemd-timesyncd
fi
