We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f948e96 commit 64ef4faCopy full SHA for 64ef4fa
setup/bindir/cloud-set-guest-sshkey.in
@@ -81,8 +81,8 @@ if [ ! -e $authorized ]; then
81
chmod 600 $authorized
82
fi
83
84
-cat $authorized|grep -v "$publickey"|tee $authorized > /dev/null
85
-echo "$publickey" >> $authorized
+sed -i "/ cloudstack@apache.org$/d" $authorized
+echo "$publickey cloudstack@apache.org" >> $authorized
86
87
which restorecon && restorecon -R -v $sshdir
88
0 commit comments