Rev 75 | Rev 120 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 75 | Rev 99 | ||
---|---|---|---|
Line 93... | Line 93... | ||
93 | 93 | ||
94 | . /usr/share/debconf/confmodule |
94 | . /usr/share/debconf/confmodule |
95 | 95 | ||
96 | db_get "lsh-server/lshd_port"; LSHD_PORT="$RET" |
96 | db_get "lsh-server/lshd_port"; LSHD_PORT="$RET" |
97 | db_get "lsh-server/sftp"; ENABLE_SFTP="$RET" |
97 | db_get "lsh-server/sftp"; ENABLE_SFTP="$RET" |
- | 98 | db_get "lsh-server/extra_args"; EXTRA_ARGS="$RET" |
|
98 | exec 3>&- |
99 | exec 3>&- |
99 | 100 | ||
100 | # OK, now make the config file |
101 | # OK, now make the config file |
101 | 102 | ||
102 | cat <<"EOF" >"$LSHD_DEFAULTS" |
103 | cat <<"EOF" >"$LSHD_DEFAULTS" |
Line 106... | Line 107... | ||
106 | # |
107 | # |
107 | EOF |
108 | EOF |
108 | 109 | ||
109 | echo "LSHD_PORT=\"$LSHD_PORT\"" >>"$LSHD_DEFAULTS" |
110 | echo "LSHD_PORT=\"$LSHD_PORT\"" >>"$LSHD_DEFAULTS" |
110 | echo "ENABLE_SFTP=\"$ENABLE_SFTP\"" >> "$LSHD_DEFAULTS" |
111 | echo "ENABLE_SFTP=\"$ENABLE_SFTP\"" >> "$LSHD_DEFAULTS" |
- | 112 | echo "EXTRA_ARGS=\"$EXTRA_ARGS\"" >> "$LSHD_DEFAULTS" |
|
111 | 113 | ||
112 | # Versions before 2.0.1cdbs-4 have a security issue, therefore |
114 | # Versions before 2.0.1cdbs-4 have a security issue, therefore |
113 | # have the random seed regenerated. |
115 | # have the random seed regenerated. |
114 | if [ "$2" ] && [ -e "/var/spool/lsh/yarrow-seed-file" ] \ |
116 | if [ "$2" ] && [ -e "/var/spool/lsh/yarrow-seed-file" ] \ |
115 | && dpkg --compare-versions "$2" lt "2.0.1cdbs-4"; then |
117 | && dpkg --compare-versions "$2" lt "2.0.1cdbs-4"; then |