~ubuntu-branches/ubuntu/quantal/lxc/quantal-201209191812

« back to all changes in this revision

Viewing changes to debian/patches/0223-ubuntu-template-user-msg

  • Committer: Serge Hallyn
  • Date: 2012-09-19 16:59:37 UTC
  • Revision ID: serge.hallyn@canonical.com-20120919165937-rqzl62bbj1wej27s
0223-ubuntu-template-user-msg: don't say default user is ubuntu when
it isn't.  (LP: #1052315)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: lxc-ubuntu: fix printing of default user
 
2
 If a user is bound into the container, don't claim the default user is
 
3
 ubuntu.
 
4
Author: Serge Hallyn <serge.hallyn@ubuntu.com>
 
5
Forwarded: yes
 
6
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1052315
 
7
 
 
8
Index: lxc/templates/lxc-ubuntu.in
 
9
===================================================================
 
10
--- lxc.orig/templates/lxc-ubuntu.in    2012-09-19 11:54:39.942250000 -0500
 
11
+++ lxc/templates/lxc-ubuntu.in 2012-09-19 11:56:48.377032378 -0500
 
12
@@ -708,7 +708,11 @@
 
13
 
 
14
 echo ""
 
15
 echo "##"
 
16
-echo "# The default user is 'ubuntu' with password 'ubuntu'!"
 
17
-echo "# Use the 'sudo' command to run tasks as root in the container."
 
18
+if [ -n "$bindhome" ]; then
 
19
+       echo "# Log in as user $bindhome"
 
20
+else
 
21
+       echo "# The default user is 'ubuntu' with password 'ubuntu'!"
 
22
+       echo "# Use the 'sudo' command to run tasks as root in the container."
 
23
+fi
 
24
 echo "##"
 
25
 echo ""