Skip to content

Commit

Permalink
fix key perms
Browse files Browse the repository at this point in the history
  • Loading branch information
unpackerr-auto-releaser committed Jul 31, 2024
1 parent 365c056 commit 42617ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init/archlinux/aur-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ push_it() {
rm -rf release_repo
}

set -e

# Make an id_rsa file with our secret.
mkdir -p $HOME/.ssh
KEY_FILE="$(mktemp -u $HOME/.ssh/XXXXX)"
chmod 600 "${KEY_FILE}"
echo "${DEPLOY_KEY}" > "${KEY_FILE}"
chmod 600 "${KEY_FILE}"
# Configure ssh to use this secret on a custom hostname.
AUR_HOST="arch.$(basename $KEY_FILE)"
printf "%s\n" \
Expand Down

0 comments on commit 42617ca

Please sign in to comment.