Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
be3f1a62
Commit
be3f1a62
authored
Jul 29, 2019
by
Paul Cammish
Browse files
Copy roots authorized_keys to sympl
parent
110befa4
Changes
1
Show whitespace changes
Inline
Side-by-side
core/debian/postinst
View file @
be3f1a62
...
...
@@ -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.
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment