Commit 1e1f8eeb by Stéphane Graber

lxc-ubuntu: Fix mixed indent

Replace all remaining tabs by 8 spaces, to properly indent by 4 spaces. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 8e100cef
...@@ -113,13 +113,13 @@ finalize_user() ...@@ -113,13 +113,13 @@ finalize_user()
done done
if [ -n "$auth_key" -a -f "$auth_key" ]; then if [ -n "$auth_key" -a -f "$auth_key" ]; then
u_path="/home/${user}/.ssh" u_path="/home/${user}/.ssh"
root_u_path="$rootfs/$u_path" root_u_path="$rootfs/$u_path"
mkdir -p $root_u_path mkdir -p $root_u_path
cp $auth_key "$root_u_path/authorized_keys" cp $auth_key "$root_u_path/authorized_keys"
chroot $rootfs chown -R ${user}: "$u_path" chroot $rootfs chown -R ${user}: "$u_path"
echo "Inserted SSH public key from $auth_key into /home/${user}/.ssh/authorized_keys" echo "Inserted SSH public key from $auth_key into /home/${user}/.ssh/authorized_keys"
fi fi
return 0 return 0
} }
...@@ -720,10 +720,10 @@ fi ...@@ -720,10 +720,10 @@ fi
echo "" echo ""
echo "##" echo "##"
if [ -n "$bindhome" ]; then if [ -n "$bindhome" ]; then
echo "# Log in as user $bindhome" echo "# Log in as user $bindhome"
else else
echo "# The default user is 'ubuntu' with password 'ubuntu'!" echo "# The default user is 'ubuntu' with password 'ubuntu'!"
echo "# Use the 'sudo' command to run tasks as root in the container." echo "# Use the 'sudo' command to run tasks as root in the container."
fi fi
echo "##" echo "##"
echo "" echo ""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment