Created
February 22, 2018 14:41
-
-
Save turingmachine/1e1f53d96c6d0766ccf0a138aa7aa6f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ x$1 == x”precustomization” ]; then | |
echo Do Nothing | |
elif [ x$1 == x”postcustomization” ]; then | |
mkdir -p /root/.ssh | |
echo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPYt1OOlP6CB80/GmBrqBpyKM4PY0cuJlpcBdzutW5+j [email protected] > /root/.ssh/authorized_keys | |
restorecon -R -v /root/.ssh | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment