commit | ff7771e5fb8ac249480abc1e39a27b8abe310e6c | [log] [tgz] |
---|---|---|
author | Anthony Young <sleepsonthefloor@gmail.com> | Thu Nov 10 13:33:31 2011 -0800 |
committer | Anthony Young <sleepsonthefloor@gmail.com> | Thu Nov 10 13:33:31 2011 -0800 |
tree | 8e12ffcfbbc71843e4a5a2f34658bd0bce0d8a21 | |
parent | 33d2a4e2d9318443c1e2b1b362ac02d127078a09 [diff] |
fix useradd
diff --git a/tools/build_uec.sh b/tools/build_uec.sh index eabc1e7..16ecd64 100755 --- a/tools/build_uec.sh +++ b/tools/build_uec.sh
@@ -194,7 +194,7 @@ PUB_KEY=`cat ~/.ssh/id_rsa.pub` cat >> $vm_dir/uec/user-data<<EOF mkdir -p /opt/stack -useradd stack -s /bin/bash -d /opt/stack -G libvirtd || true +useradd -U -G sudo -s /bin/bash -d /opt/stack -m stack echo stack:pass | chpasswd mkdir -p /opt/stack/.ssh echo "$PUB_KEY" > /opt/stack/.ssh/authorized_keys