14 lines
305 B
Bash
14 lines
305 B
Bash
#!/bin/sh
|
|
set -e
|
|
mkdir -p /data /data/context
|
|
|
|
# Chiave SSH per thermal gate (permessi OpenSSH)
|
|
if [ -f /run/secrets/ds920_ssh_key ]; then
|
|
mkdir -p /root/.ssh
|
|
cp /run/secrets/ds920_ssh_key /root/.ssh/ds920_key
|
|
chmod 600 /root/.ssh/ds920_key
|
|
export DS920_SSH_KEY=/root/.ssh/ds920_key
|
|
fi
|
|
|
|
exec "$@"
|