Skip to content

Commit

Permalink
Revert "fix sshkey reset in sharedfsvm"
Browse files Browse the repository at this point in the history
This reverts commit cec9ae9.
  • Loading branch information
weizhouapache committed Sep 4, 2024
1 parent 8603912 commit 448a37c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions systemvm/debian/opt/cloud/bin/setup/sharedfsvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ setup_sharedfsvm() {
sed -i '/- ssh$/s/- ssh/- [ssh, always]/' /etc/cloud/cloud.cfg

> /root/.ssh/authorized_keys
> /home/debian/.ssh/authorized_keys
rm -f /etc/cloud/cloud-init.disabled

swapoff -a
sudo sed -i '/ swap / s/^/#/' /etc/fstab
log_it "Swap disabled"
Expand All @@ -56,7 +53,6 @@ setup_sharedfsvm() {

log_it "Starting cloud-init services"
if [ -f /home/cloud/success ]; then
cloud-init init
systemctl stop cloud-init cloud-config cloud-final
systemctl disable cloud-init cloud-config cloud-final
else
Expand Down

0 comments on commit 448a37c

Please sign in to comment.