10 lines
451 B
Django/Jinja
10 lines
451 B
Django/Jinja
#!/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 }}
|