diff --git a/ucloud-init.start b/ucloud-init.start index 6c4918e..5439b40 100755 --- a/ucloud-init.start +++ b/ucloud-init.start @@ -40,6 +40,8 @@ rdnssd -u root -r /etc/resolv.conf if [[ $(get_distro) = "alpine" ]]; then apk update apk add openssh-server sfdisk util-linux jq + + mkdir -p $(dirname $ssh_authorized_keys_path) touch $ssh_authorized_keys_path if ! grep -q "PasswordAuthentication no" $sshd_config_path; then