mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-1066: bug fixes to cloudstack package script
This commit is contained in:
parent
ee9baefe3f
commit
97833c9f93
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user