]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
oracle template: fix sudo lxc-create on ubuntu
authorDwight Engen <dwight.engen@oracle.com>
Fri, 25 Jan 2013 22:41:34 +0000 (17:41 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 28 Jan 2013 16:49:13 +0000 (11:49 -0500)
rpm on ubuntu puts the rpm db under $HOME, which wont be /root if
sudo is used

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-oracle.in

index 2402cc50010f3e74356d8987d203968cfdc133e3..95c6275fdf1a31b9f92c8d03eae038c8672fe4cc 100644 (file)
@@ -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