Skip to content

Commit

Permalink
falter-berlin-admin-keys: fix $OPKG_INSTROOT for buildroot builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Jul 8, 2024
1 parent 23160bc commit e1f39fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/falter-berlin-admin-keys/files/register_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ KEY_FILES=$(find "$SCRIPTPATH" -name "*.pub")

for KEY_FILE in $KEY_FILES; do
KEY=$(cat $KEY_FILE)
if [ -z "$(grep "$KEY" /etc/dropbear/authorized_keys)" ]; then
echo "$KEY" >> /etc/dropbear/authorized_keys
if [ -z "$(grep "$KEY" $IPKG_INSTROOT/etc/dropbear/authorized_keys)" ]; then
echo "$KEY" >> $IPKG_INSTROOT/etc/dropbear/authorized_keys
fi
done

0 comments on commit e1f39fa

Please sign in to comment.