~ci-train-bot/libertine/libertine-ubuntu-zesty-2086

« back to all changes in this revision

Viewing changes to tools/libertine-lxc-setup

  • Committer: Chris Townsend
  • Date: 2016-07-15 18:39:58 UTC
  • mto: This revision was merged to the branch mainline in revision 272.
  • Revision ID: christopher.townsend@canonical.com-20160715183958-l95grj44p272lfz4
Rework the whole way we handle updating the necessary system files for unprivileged LXC's:
- Add new script that does the updates.
- Add sudoers file for this script.
- Remove the password dialog in the UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
USERNAME=$1
 
4
 
 
5
LXC_USERNET_ENTRY="$USERNAME veth lxcbr0 10"
 
6
 
 
7
usermod --add-subuids 100000-165536 --add-subgids 100000-165536 $USERNAME
 
8
 
 
9
echo $LXC_USERNET_ENTRY | tee -a /etc/lxc/lxc-usernet > /dev/null