Package systemd-timesyncd: Скрипты

Post install

if [ $1 -eq 1 ] ; then
        # Enable the services we install by default
        systemctl preset \
                systemd-timesyncd.service \
                 >/dev/null 2>&1 || :
fi

if [ -L /var/lib/systemd/timesync ]; then
    rm /var/lib/systemd/timesync
    mv /var/lib/private/systemd/timesync /var/lib/systemd/timesync
fi
if [ -f /var/lib/systemd/clock ] ; then
    mkdir -p /var/lib/systemd/timesync
    mv /var/lib/systemd/clock /var/lib/systemd/timesync/
fi
Pre install

1
2
3
groupadd -r -f systemd-timesync >/dev/null 2>&1 ||:
useradd -g systemd-timesync -c 'systemd Time Synchronization' \
    -d /var/empty -s /dev/null -r -l -M systemd-timesync >/dev/null 2>&1 ||:
Pre uninstall

1
2
3
4
5
if [ $1 -eq 0 ] ; then
        systemctl disable --quiet \
                systemd-timesyncd.service \
                 >/dev/null 2>&1 || :
fi