Browse Source

Fetch ssh keys from github if GITHUB_USERNAME is selected

master
nolim1t 5 years ago
parent
commit
3715bccfb1
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 7
      stage2/01-sys-tweaks/01-run.sh

7
stage2/01-sys-tweaks/01-run.sh

@ -25,6 +25,13 @@ fi
systemctl enable regenerate_ssh_host_keys
EOF
if [ ! -z ${GITHUB_USERNAME} ]; then
echo "Setting up authorized_keys file"
cd $ROOTFS_DIR/home/$FIRST_USER_NAME
mkdir -p .ssh
curl "https://github.com/${GITHUB_USERNAME}.keys" > authorized_keys
fi
if [ "${USE_QEMU}" = "1" ]; then
echo "enter QEMU mode"
install -m 644 files/90-qemu.rules "${ROOTFS_DIR}/etc/udev/rules.d/"

Loading…
Cancel
Save