Otherwise, as an example, if doing 'lxc-create -t debian' while there is a 'debian' directory, lxc-create will fail to do the right thing.
Signed-off-by: Serge Hallyn <serge.hal...@ubuntu.com> --- src/lxc/lxc-create.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in index fec5511..ebbdd7b 100644 --- a/src/lxc/lxc-create.in +++ b/src/lxc/lxc-create.in @@ -291,7 +291,7 @@ fi if [ ! -z "$lxc_template" ]; then # Allow for a path to be provided as the template name - if [ -x "$lxc_template" ]; then + if [ -x "$lxc_template" -a $(echo "$lxc_template" | cut -c 1) = '/' ]; then template_path=$lxc_template else template_path=${templatedir}/lxc-$lxc_template -- 1.8.1.2 ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel