Updated Branches:
  refs/heads/master 2364ada4d -> 97833c9f9

CLOUDSTACK-1066: bug fixes to cloudstack package script


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/97833c9f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/97833c9f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/97833c9f

Branch: refs/heads/master
Commit: 97833c9f939ad02ec96f2adb8c563de5988b99e3
Parents: ee9baef
Author: Chiradeep Vittal <[email protected]>
Authored: Thu Feb 7 19:02:09 2013 -0800
Committer: Chiradeep Vittal <[email protected]>
Committed: Thu Feb 7 19:02:22 2013 -0800

----------------------------------------------------------------------
 .../systemvmtemplate/cloudstack-packages.sh        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/97833c9f/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
----------------------------------------------------------------------
diff --git 
a/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh 
b/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
index 426cd03..070122d 100644
--- a/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
+++ b/tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh
@@ -57,7 +57,7 @@ accounts() {
   # Setup sudo to allow no-password sudo for "admin"
   groupadd -r admin
   #create a 'cloud' user
-  usermod -a -G admin cloud
+  useradd -G admin cloud
   echo "root:password" | chpasswd
   echo "cloud:password" | chpasswd
   sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' 
/etc/sudoers
@@ -70,7 +70,7 @@ accounts() {
 
 do_fixes() {
   #fix hostname in openssh-server generated keys
-  sed -i "s/root@\(.*\)$/root@systemvm/g" etc/ssh/ssh_host_*.pub
+  sed -i "s/root@\(.*\)$/root@systemvm/g" /etc/ssh/ssh_host_*.pub
 }
 
 signature() {

Reply via email to