File: tmate-ssh-server.postinst

package info (click to toggle)
tmate-ssh-server 2.3.0-49-g97d20249-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,520 kB
  • sloc: ansic: 39,208; awk: 339; makefile: 252; sh: 126; ruby: 45; perl: 41
file content (24 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

ETCDIR=/etc/tmate-ssh-server

case $1 in
    configure)
        if test -z $2; then
	    if ! test -d $ETCDIR/keys; then
		echo "Generating ssh keys used by tmate-ssh-server ..."
		umask 022
		mkdir -p $ETCDIR
		umask 077
		cd $ETCDIR
		/usr/lib/tmate-ssh-server/libexec/create_keys.sh
		chmod 755 $ETCDIR/keys
		chmod 644 $ETCDIR/keys/*.pub
	    fi
        fi
    ;;
esac

#DEBHELPER#