From eb2f5931c7a80710c974200395a4501e38b409a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 20 Sep 2018 11:28:08 +0200 Subject: alpine-amd64: add setup script --- files/alpine/amd64.sh | 3 ++- files/alpine/setup.sh | 25 +++++++++++++++++++++++++ files/alpine/setup.sh.gpg | Bin 0 -> 1283 bytes 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 files/alpine/setup.sh create mode 100644 files/alpine/setup.sh.gpg diff --git a/files/alpine/amd64.sh b/files/alpine/amd64.sh index e1d0727..e80cc5c 100755 --- a/files/alpine/amd64.sh +++ b/files/alpine/amd64.sh @@ -1,7 +1,7 @@ #!/bin/sh . utils -# TODO mount global alpine repository +# TODO mount global distfiles cache # TODO get latest uri from latest-releases.yml file if [ ! -d "$ROOT" ]; then @@ -47,3 +47,4 @@ ssh upload /bin/sh -e <&2 + exit 1 +} +[ "$(id -u)" = "0" ] || { + echo "Please run this script as root!" >&2 + exit 1 +} + +# Deploy key +cat >/etc/apk/keys/cynerd@email.cz-5b8aeb6d.rsa.pub <> /etc/apk/repositories diff --git a/files/alpine/setup.sh.gpg b/files/alpine/setup.sh.gpg new file mode 100644 index 0000000..aeec2a6 Binary files /dev/null and b/files/alpine/setup.sh.gpg differ -- cgit v1.2.3