Skip to content

Instantly share code, notes, and snippets.

@turingmachine
Created February 22, 2018 14:41
Show Gist options
  • Save turingmachine/1e1f53d96c6d0766ccf0a138aa7aa6f2 to your computer and use it in GitHub Desktop.
Save turingmachine/1e1f53d96c6d0766ccf0a138aa7aa6f2 to your computer and use it in GitHub Desktop.
#!/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