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

Post install

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

/usr/sbin/post_service systemd-timesyncd.service
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

/usr/sbin/preun_service systemd-timesyncd.service