14 lines
304 B
Bash
Executable file
14 lines
304 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -f /config/authorized_keys ]; then
|
|
cp /config/authorized_keys ~oneadmin/.ssh/
|
|
chown oneadmin:oneadmin -R ~oneadmin/.ssh/
|
|
chmod og-rwx ~oneadmin/.ssh/
|
|
fi
|
|
|
|
/etc/init.d/ssh start
|
|
|
|
# It dies from time to time, don't be confused about it
|
|
while true; do
|
|
/usr/sbin/libvirtd
|
|
done
|