diff options
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 13 |
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 | ||
283 | set_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 | |||
283 | setup_startup() { | 295 | setup_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 | |||
311 | create_alternatives | 323 | create_alternatives |
312 | setup_sshd_user | 324 | setup_sshd_user |
313 | set_sshd_permissions | 325 | set_sshd_permissions |
326 | set_ssh_agent_permissions | ||
314 | setup_startup | 327 | setup_startup |
315 | setup_init | 328 | setup_init |
316 | 329 | ||