From: Dwight Engen Date: Fri, 25 Jan 2013 22:41:34 +0000 (-0500) Subject: oracle template: fix sudo lxc-create on ubuntu X-Git-Tag: lxc-0.9.0.alpha3~1^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ff8a4606d223b79545573d517dc80f9c2f70fd6;p=thirdparty%2Flxc.git oracle template: fix sudo lxc-create on ubuntu rpm on ubuntu puts the rpm db under $HOME, which wont be /root if sudo is used Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in index 2402cc500..95c6275fd 100644 --- a/templates/lxc-oracle.in +++ b/templates/lxc-oracle.in @@ -487,7 +487,7 @@ container_rootfs_create() # these distributions put the rpm database in a place the guest is # not expecting it, so move it if [ $host_distribution = "Ubuntu" ]; then - mv $container_rootfs/root/.rpmdb/* $container_rootfs/var/lib/rpm + mv $container_rootfs/$HOME/.rpmdb/* $container_rootfs/var/lib/rpm fi # if the native rpm created the db with Hash version 9, we need to