Commit be3f1a62 authored by Paul Cammish's avatar Paul Cammish
Browse files

Copy roots authorized_keys to sympl

parent 110befa4
......@@ -45,6 +45,15 @@ if ( ! grep ^sympl: /etc/passwd 2>/dev/null >/dev/null ); then
usermod -p "$(grep root /etc/shadow | cut -f 2 -d :)" sympl
# If the root user has authorized_keys, copy them to the new Sympl user
if [ -f /root/.ssh/authorized_keys ]; then
mkdir -p /home/sympl/.ssh
cp /root/.ssh/authorized_keys /home/sympl/.ssh/authorized_keys
chown sympl:sympl /home/sympl/.ssh/authorized_keys
# If we have an adm group - which we should - add the Sympl user to it.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment