mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
change to resin style
This commit is contained in:
parent
1d17819311
commit
036f375f06
@ -1,7 +1,7 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://sync-authorized-keys.sh \
|
||||
file://sync-authorized-keys \
|
||||
file://sync-authorized-keys.service \
|
||||
"
|
||||
|
||||
@ -17,7 +17,7 @@ do_install_append() {
|
||||
install -d ${D}/home/root/.ssh
|
||||
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/sync-authorized-keys.sh ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/sync-authorized-keys ${D}${bindir}
|
||||
|
||||
if [ "${RESIN_CONNECTABLE_ENABLE_SERVICES}" = "1" ]; then
|
||||
rm -fr ${D}${localstatedir}/lib/dropbear/
|
||||
|
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
BOOT_SSH_KEY=/mnt/boot/authorized_keys
|
||||
HOME_SSH_KEY=/home/root/.ssh/authorized_keys
|
||||
|
@ -6,7 +6,8 @@ Before=etc-dropbear.mount
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@BASE_BINDIR@/bash @BINDIR@/sync-authorized-keys.sh
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@BASE_BINDIR@/bash @BINDIR@/sync-authorized-keys
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user