diff --git a/ucloud-init.start b/ucloud-init.start index 5439b40..bba5459 100755 --- a/ucloud-init.start +++ b/ucloud-init.start @@ -21,6 +21,11 @@ if [[ ! -e /etc/conf.d/local ]] && ! grep -q "rc_verbose=yes" /etc/conf.d/local; echo "rc_verbose=yes" >> /etc/conf.d/local fi + +# Enable Edge Repo +sed -i -e 's/v[[:digit:]]\.[[:digit:]]/edge/g' /etc/apk/repositories +apk upgrade --update-cache --available + # Check if rdnssd is installed, if not put ungleich DNS # into /etc/resolv.conf and install rdnssd for the next time if ! $(which rdnssd); then @@ -39,7 +44,7 @@ rdnssd -u root -r /etc/resolv.conf # Initial Package Intallation if [[ $(get_distro) = "alpine" ]]; then apk update - apk add openssh-server sfdisk util-linux jq + apk add openssh-server sfdisk util-linux jq curl mkdir -p $(dirname $ssh_authorized_keys_path) touch $ssh_authorized_keys_path