From 8077e649f2cb800e8fc7b11d5ccad820859a6c82 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Sun, 25 Aug 2019 15:50:39 +0500 Subject: [PATCH] abc --- ucloud-init.start | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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