Commit 9d11fc4b authored by Paul Cammish's avatar Paul Cammish
Browse files

Merge branch 'buster-testing' into HEAD

parents 668d288b 96043d8b
sympl-core (10.0.190729.0) stable; urgency=medium
* Copy root users authorized_keys to Sympl user on first install.
-- Paul Cammish <sympl@kelduum.net> Mon, 29 Jul 2019 12:49:00 +0100
sympl-core (10.0.190725.0) stable; urgency=medium
* Fixed typo in sympl CLI
......
......@@ -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
fi
#
# 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