From e02ea7ddb8f13c0af4739f22cabf4606d6692199 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 May 2009 02:28:50 +0200 Subject: [PATCH] ntp: $chroot/var/db needs to exist with proper perms for ntpd. --HG-- extra : convert_revision : ee3acd664fd8cbaca155305be3835a7b976bad73 --- templates/ntp/INSTALL | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/ntp/INSTALL b/templates/ntp/INSTALL index 2272d605c4c..abeba724e39 100644 --- a/templates/ntp/INSTALL +++ b/templates/ntp/INSTALL @@ -20,5 +20,11 @@ post) [ $? -ne 0 ] && exit $? echo "Created ntpd system user." fi + + # Fix ntpd initialization with -i (chrooted). + if [ ! -d var/chroot/ntpd/var/db ]; then + mkdir -p var/chroot/ntpd/var/db + chown ntpd:ntpd /var/chroot/ntpd/var/db + fi ;; esac