From fb347c97ac996a5d50559bee62b618ad0542b947 Mon Sep 17 00:00:00 2001 From: John Seymour Date: Fri, 22 Jul 2011 15:08:40 +1200 Subject: [PATCH] Bug 4873 - Ensure that the required directories exist on init As systems (Ubuntu already, Debian testing is doing it too) move to ramdisking /var/run and /var/lock, or otherwise clearing them on boot, we need to ensure that they're there when we need them. This patch autocreates any directories that are missing when the init script runs. Signed-off-by: Robin Sheat Signed-off-by: Chris Cormack --- debian/koha-common.init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/koha-common.init b/debian/koha-common.init index 719a5841bc..5be77d36b9 100755 --- a/debian/koha-common.init +++ b/debian/koha-common.init @@ -42,6 +42,8 @@ SCRIPTNAME=/etc/init.d/$NAME # do_start() { + # We insure all required directories exist, including disabled ones. + koha-create-dirs $(koha-list) koha-start-zebra $(koha-list --enabled) } -- 2.39.5