1
0
forked from finn/tinyboard

fix windows line endings in pasted key and rclone remote mount hint

This commit is contained in:
Justin Oros
2026-04-16 09:13:17 -07:00
parent 2abd6ac6a4
commit c71ad59629
2 changed files with 3 additions and 3 deletions

View File

@@ -93,5 +93,5 @@ echo -e " Hub key: ${GREEN}$KEY_PATH${NC}"
echo -e " rclone: ${GREEN}${SPOKE_NAME}-remote${NC}" echo -e " rclone: ${GREEN}${SPOKE_NAME}-remote${NC}"
echo "" echo ""
echo -e "${YELLOW}To mount this spoke:${NC}" echo -e "${YELLOW}To mount this spoke:${NC}"
echo " hubspoke-helper.sh hub start" echo " RCLONE_REMOTE=${SPOKE_NAME}-remote hubspoke-helper.sh hub start"
echo "" echo ""

View File

@@ -88,8 +88,8 @@ case "$KEY_CHOICE" in
chmod 700 "$SSH_DIR" chmod 700 "$SSH_DIR"
echo "Paste the private key content below, then press ENTER and CTRL+D:" echo "Paste the private key content below, then press ENTER and CTRL+D:"
KEY_CONTENT=$(cat) KEY_CONTENT=$(cat | tr -d '\r')
echo "$KEY_CONTENT" > "$KEY_PATH" printf '%s\n' "$KEY_CONTENT" > "$KEY_PATH"
chown armbian:armbian "$KEY_PATH" chown armbian:armbian "$KEY_PATH"
chmod 600 "$KEY_PATH" chmod 600 "$KEY_PATH"
info "Key saved to $KEY_PATH" info "Key saved to $KEY_PATH"