bugfix v2

This commit is contained in:
pvizeli 2017-03-23 16:06:53 +01:00
parent 608d5edb2f
commit 8ec67f6baf
4 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh -e
source /usr/sbin/resin-vars
source /etc/resin-supervisor/supervisor.conf
SUPERVISOR_IMAGE_ID=$(docker inspect --format='{{.Id}}' $SUPERVISOR_IMAGE)
SUPERVISOR_CONTAINER_IMAGE_ID=$(docker inspect --format='{{.Image}}' resin_supervisor || echo "")

View File

@ -1,4 +1,4 @@
SUPERVISOR_IMAGE=@SUPERVISOR_REPOSITORY@
SUPERVISOR_IMAGE=@SUPERVISOR_REPOSITORY@
SUPERVISOR_TAG=@SUPERVISOR_TAG@
LED_FILE=@LED_FILE@
MACHINE=@MACHINE@

View File

@ -1,5 +1,5 @@
[Unit]
Description=SSH authorized_keys state bind mount
Description=SSH authorized_keys sync
Requires=home-root-.ssh.mount mnt-boot.mount
After=home-root-.ssh.mount mnt-boot.mount
Before=etc-dropbear.mount

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/bin/bash
BOOT_SSH_KEY=/mnt/boot/authorized_keys
HOME_SSH_KEY=/home/root/.ssh/authorized_keys
if [ -f BOOT_SSH_KEY ]; then
mv BOOT_SSH_KEY HOME_SSH_KEY
chmod 0650 HOME_SSH_KEY
if [ -f $BOOT_SSH_KEY ]; then
mv $BOOT_SSH_KEY $HOME_SSH_KEY
chmod 0600 $HOME_SSH_KEY
fi