summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-11-28 17:25:53 +0100
committerKarel Kočí <cynerd@email.cz>2020-11-28 17:25:53 +0100
commita520be65fa19e66be4f5d9a91e257a6a2b835bc3 (patch)
treefdb0728794397349f0d09f0d52b32edba022f35f /templates
parenta1d7dcb6d990343c3c689114531f2b49daa8bb04 (diff)
downloadlaminar-cnf-a520be65fa19e66be4f5d9a91e257a6a2b835bc3.tar.gz
laminar-cnf-a520be65fa19e66be4f5d9a91e257a6a2b835bc3.tar.bz2
laminar-cnf-a520be65fa19e66be4f5d9a91e257a6a2b835bc3.zip
Move keys to dedicated directory
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/alpine.run4
-rwxr-xr-xtemplates/turris.run2
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/alpine.run b/templates/alpine.run
index fc0d69b..6811191 100755
--- a/templates/alpine.run
+++ b/templates/alpine.run
@@ -44,8 +44,8 @@ if [ ! -d "$ROOT" ]; then
su -l build -c 'mkdir .abuild aports packages'
su -l build -c 'echo "PACKAGER_PRIVKEY=\"/build/.abuild/cynerd@email.cz-5b8aeb6d.rsa\"" > .abuild/abuild.conf'
EOF
- uroot cp ~/alpinelinux.rsa.key "$ROOT/build/.abuild/cynerd@email.cz-5b8aeb6d.rsa"
- uroot cp ~/alpinelinux.rsa.key.pub "$ROOT/etc/apk/keys/cynerd@email.cz-5b8aeb6d.rsa.pub"
+ uroot cp ~/keys/alpinelinux.rsa.key "$ROOT/build/.abuild/cynerd@email.cz-5b8aeb6d.rsa"
+ uroot cp ~/keys/alpinelinux.rsa.key.pub "$ROOT/etc/apk/keys/cynerd@email.cz-5b8aeb6d.rsa.pub"
uchroot root <<EOF
set -e
chmod 644 /etc/apk/keys/cynerd@email.cz-5b8aeb6d.rsa.pub
diff --git a/templates/turris.run b/templates/turris.run
index ce1aa12..58a4714 100755
--- a/templates/turris.run
+++ b/templates/turris.run
@@ -67,7 +67,7 @@ find package/feeds/personal -mindepth 1 -maxdepth 1 -printf '%P\n' | \
done
echo_stage "Generate index and sign"
-$make package/index BUILD_KEY=~/openwrt-repo.sec
+$make package/index BUILD_KEY=~/keys/openwrt-repo.sec
echo_stage "Deploy"
ssh upload rm -rf "deploy-turris-$ANIMAL-$BOARD"