ansible-role-debianunattended/templates/late_command.sh.j2

10 lines
451 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
mkdir -p /target/root/.ssh
cp /cdrom/authorized_keys /target/root/.ssh
chmod 700 /target/root/.ssh -R
mkdir -p /target/home/{{ debianunattended_username }}/.ssh
cp /cdrom/authorized_keys /target/home/{{ debianunattended_username }}/.ssh
chown 1000:1000 /target/home/{{ debianunattended_username }}/.ssh -R
chmod 700 /target/home/{{ debianunattended_username }}/.ssh -R
cp /cdrom/sudoers /target/etc/sudoers.d/{{ debianunattended_username }}