15 lines
472 B
Bash
15 lines
472 B
Bash
|
|
#!/bin/bash
|
||
|
|
#============================================================================
|
||
|
|
# Title : post-install
|
||
|
|
# Description : postinstall section for running by Anaconda kickstart
|
||
|
|
# ---------------------------------------------------------------------------
|
||
|
|
|
||
|
|
mkdir -p /root/.ssh
|
||
|
|
|
||
|
|
cp /var/lib/misc/custom/postinstall.service /etc/systemd/system
|
||
|
|
cp /var/lib/misc/custom/authorized_keys /root/.ssh
|
||
|
|
|
||
|
|
chmod 600 /root/.ssh/authorized_keys
|
||
|
|
|
||
|
|
systemctl enable postinstall
|