This is an automated email from the ASF dual-hosted git repository.

bhaisaab pushed a commit to branch debian9-systemvmtemplate
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 0ba883969879b4404df7834e2319740bcf28dbf6
Author: Rohit Yadav <[email protected]>
AuthorDate: Sun Nov 26 15:13:30 2017 +0530

    fix ssh patching
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 systemvm/patches/debian/config/etc/init.d/cloud-early-config | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config 
b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
index 70f7afa..543a7e0 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -196,11 +196,12 @@ patch() {
 
     log_it "Patching cloud service"
     /opt/cloud/bin/setup/patchsystemvm.sh $PATCH_MOUNT $TYPE
+
+    [ -f $privkey ] && cp -f $privkey /root/.ssh/ && chmod go-rwx 
/root/.ssh/authorized_keys
+
     umount $PATCH_MOUNT
   fi
 
-  [ -f $privkey ] && cp -f $privkey /root/.ssh/ && chmod go-rwx 
/root/.ssh/authorized_keys
-
   if [ -f /mnt/cmdline ]; then
     cat /mnt/cmdline > $CMDLINE
   fi

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to