You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ch...@apache.org on 2013/02/08 04:04:07 UTC

[3/3] git commit: refs/heads/master - CLOUDSTACK-1066: bug fixes to cloudstack package script

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 <ch...@apache.org>
Authored: Thu Feb 7 19:02:09 2013 -0800
Committer: Chiradeep Vittal <ch...@apache.org>
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() {