Skip to content

Commit

Permalink
sshkeys: use file content instead of file name
Browse files Browse the repository at this point in the history
  • Loading branch information
themactep committed Dec 31, 2024
1 parent 0732d8b commit 03e625e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/lower/etc/init.d/S35sshkeys
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ read_env() {
read_file() {
if [ -f "$DATA_FILE" ]; then
info "Read dropbear key from file"
b64=$(echo $DATA_FILE | base64 | tr -d '\n')
b64=$(cat $DATA_FILE | base64 | tr -d '\n')
fi
[ -z "$b64" ] && info "No dropbear key in file"
}
Expand Down

0 comments on commit 03e625e

Please sign in to comment.