mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 19:16:29 +00:00
bugfix v2
This commit is contained in:
parent
608d5edb2f
commit
8ec67f6baf
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
source /usr/sbin/resin-vars
|
source /usr/sbin/resin-vars
|
||||||
|
source /etc/resin-supervisor/supervisor.conf
|
||||||
|
|
||||||
SUPERVISOR_IMAGE_ID=$(docker inspect --format='{{.Id}}' $SUPERVISOR_IMAGE)
|
SUPERVISOR_IMAGE_ID=$(docker inspect --format='{{.Id}}' $SUPERVISOR_IMAGE)
|
||||||
SUPERVISOR_CONTAINER_IMAGE_ID=$(docker inspect --format='{{.Image}}' resin_supervisor || echo "")
|
SUPERVISOR_CONTAINER_IMAGE_ID=$(docker inspect --format='{{.Image}}' resin_supervisor || echo "")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SUPERVISOR_IMAGE=@SUPERVISOR_REPOSITORY@
|
SUPERVISOR_IMAGE=@SUPERVISOR_REPOSITORY@
|
||||||
SUPERVISOR_TAG=@SUPERVISOR_TAG@
|
SUPERVISOR_TAG=@SUPERVISOR_TAG@
|
||||||
LED_FILE=@LED_FILE@
|
LED_FILE=@LED_FILE@
|
||||||
MACHINE=@MACHINE@
|
MACHINE=@MACHINE@
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=SSH authorized_keys state bind mount
|
Description=SSH authorized_keys sync
|
||||||
Requires=home-root-.ssh.mount mnt-boot.mount
|
Requires=home-root-.ssh.mount mnt-boot.mount
|
||||||
After=home-root-.ssh.mount mnt-boot.mount
|
After=home-root-.ssh.mount mnt-boot.mount
|
||||||
Before=etc-dropbear.mount
|
Before=etc-dropbear.mount
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BOOT_SSH_KEY=/mnt/boot/authorized_keys
|
BOOT_SSH_KEY=/mnt/boot/authorized_keys
|
||||||
HOME_SSH_KEY=/home/root/.ssh/authorized_keys
|
HOME_SSH_KEY=/home/root/.ssh/authorized_keys
|
||||||
|
|
||||||
if [ -f BOOT_SSH_KEY ]; then
|
if [ -f $BOOT_SSH_KEY ]; then
|
||||||
mv BOOT_SSH_KEY HOME_SSH_KEY
|
mv $BOOT_SSH_KEY $HOME_SSH_KEY
|
||||||
chmod 0650 HOME_SSH_KEY
|
chmod 0600 $HOME_SSH_KEY
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user