blob: d5aebc64289baaf20f85e42030261205a0b98d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
set -e
[ -f "/etc/alpine-release" ] || {
echo "This is not alpine distribution!" >&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 <<EOF
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxqyrzNQiXMcbINl28vIu
txXABQjOd4xSQB1/wMgblmSfnutSdsSDU3iVIBR/e5QupxAA3u0ddwcNn9fdj9GL
/WCIls+Yt3eWkiD6R10nkWANLQvYJQe369fCi/ViKBperdbYMnZAK5JwLJgsQKrw
30gQVxgCkXHUh/frGFenQOLmn9tJqu2cPLx5neyfh3Hys2CMRomAJd0GBosg3RKt
97Kp+VdtWTNqZobykQ7VTssPsbHrOXnHi60zCPP4ocMfvq+7F2mtnpBwRd1mz8ke
L2C6/kvFJ2qFVAp5LDq2znZ4X+FT3Z9VYoe4K4I0sgKyzHyvksTgl24f4rfJ4DA3
EwIDAQAB
-----END PUBLIC KEY-----
EOF
# Add repository
echo "https://cynerd.cz/repo/alpine" >> /etc/apk/repositories
# Update repsitories
apk update
# Add personal-repo
apk add personal-repo
|