[Koha-devel] [PATCH] Bug 4873 - Ensure that the required directories exist on init

Robin Sheat robin at catalyst.net.nz
Fri Jul 22 05:52:36 CEST 2011


This patch suits both master and 3.4.x, and would improve the running of
packages on Ubuntu in particular.

Robin Sheat schreef op vr 22-07-2011 om 15:37 [+1200]:
> From: John Seymour <John.Seymour at nal.gov.au>
> 
> 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 <robin at catalyst.net.nz>
> ---
>  debian/koha-common.init |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/debian/koha-common.init b/debian/koha-common.init
> index 719a584..5be77d3 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)
>  }
>  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: </pipermail/koha-devel/attachments/20110722/0fc8dd61/attachment.pgp>


More information about the Koha-devel mailing list