summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
index 10d61d86e..1b741c203 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -280,6 +280,18 @@ set_sshd_permissions() {
280} 280}
281 281
282 282
283set_ssh_agent_permissions() {
284 if ! getent group | grep -q '^ssh:'; then
285 addgroup --quiet ssh
286 fi
287 if ! [ -x /usr/sbin/dpkg-statoverride ] || \
288 ! dpkg-statoverride --list /usr/bin/ssh-agent >/dev/null ; then
289 chgrp ssh /usr/bin/ssh-agent
290 chmod 2755 /usr/bin/ssh-agent
291 fi
292}
293
294
283setup_startup() { 295setup_startup() {
284 start=yes 296 start=yes
285 [ -e /usr/share/debconf/confmodule ] && { 297 [ -e /usr/share/debconf/confmodule ] && {
@@ -311,6 +323,7 @@ fix_statoverride
311create_alternatives 323create_alternatives
312setup_sshd_user 324setup_sshd_user
313set_sshd_permissions 325set_sshd_permissions
326set_ssh_agent_permissions
314setup_startup 327setup_startup
315setup_init 328setup_init
316 329