[lxc-devel] [PATCH] oracle template: use @LOCALSTATEDIR@ instead of hardcoded /var for lock dir
Stéphane Graber
stgraber at ubuntu.com
Thu Dec 6 14:42:47 UTC 2012
On 12/06/2012 09:19 AM, Dwight Engen wrote:
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Thanks but I already proposed that yesterday and it landed a few minutes
ago :)
> ---
> templates/lxc-oracle.in | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in
> index 243f0e4..eadee3a 100644
> --- a/templates/lxc-oracle.in
> +++ b/templates/lxc-oracle.in
> @@ -337,7 +337,7 @@ container_rootfs_create()
> fi
> done
>
> - mkdir -p /var/lock/subsys/
> + mkdir -p @LOCALSTATEDIR@/lock/subsys/
> (
> flock -x 200
> if [ $? -ne 0 ]; then
> @@ -433,7 +433,7 @@ container_rootfs_create()
> echo "Rebuilding rpm database"
> rm -f $container_rootfs/var/lib/rpm/__db*
> chroot $container_rootfs rpm --rebuilddb >/dev/null 2>&1
> - ) 200>/var/lock/subsys/lxc-oracle-$name
> + ) 200>@LOCALSTATEDIR@/lock/subsys/lxc-oracle-$name
> }
>
> usage()
>
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20121206/bab506bf/attachment.pgp>
More information about the lxc-devel
mailing list