Skip to content

Commit 97833c9

Browse files
committed
CLOUDSTACK-1066: bug fixes to cloudstack package script
1 parent ee9baef commit 97833c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/appliance/definitions/systemvmtemplate/cloudstack-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ accounts() {
5757
# Setup sudo to allow no-password sudo for "admin"
5858
groupadd -r admin
5959
#create a 'cloud' user
60-
usermod -a -G admin cloud
60+
useradd -G admin cloud
6161
echo "root:password" | chpasswd
6262
echo "cloud:password" | chpasswd
6363
sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers
@@ -70,7 +70,7 @@ accounts() {
7070

7171
do_fixes() {
7272
#fix hostname in openssh-server generated keys
73-
sed -i "s/root@\(.*\)$/root@systemvm/g" etc/ssh/ssh_host_*.pub
73+
sed -i "s/root@\(.*\)$/root@systemvm/g" /etc/ssh/ssh_host_*.pub
7474
}
7575

7676
signature() {

0 commit comments

Comments
 (0)