From 0ee2736aa8fd60a34f5019a130c778a9eb02c897 Mon Sep 17 00:00:00 2001 From: fake Date: Thu, 23 Mar 2006 00:16:02 +0000 Subject: [PATCH] fake: stone_mod_setup: not only don't call cron.run if cron isn't installed, also run postinstall -a manually in that case. [2006031618045125712] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7324 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/sysfiles/stone_mod_setup.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package/base/sysfiles/stone_mod_setup.sh b/package/base/sysfiles/stone_mod_setup.sh index 4971bc2c3..438067ce8 100644 --- a/package/base/sysfiles/stone_mod_setup.sh +++ b/package/base/sysfiles/stone_mod_setup.sh @@ -110,7 +110,14 @@ main() { [ -f $x ] && . $x done - [ -n "`which cron.run`" ] && cron.run + # postinstall is called by cron.run / 00-updates - it wouldn't get + # called at all if cron isn't installed, so let's call it at lease + # once after installing / chrooting. + if [ -n "`which cron.run`" ] ; then + cron.run + else + postinstall -a + fi unset gui_nocancel exec $STONE