File: glewlwyd.config

package info (click to toggle)
glewlwyd 1.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 16,096 kB
  • sloc: ansic: 14,286; sql: 1,499; sh: 246; makefile: 150
file content (58 lines) | stat: -rw-r--r-- 1,232 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh

set -e
#set -x

. /usr/share/debconf/confmodule

db_input medium glewlwyd/config_type || true
db_go || true

db_get glewlwyd/config_type
if [ "$RET" = "Personalized" ]; then

  dbc_dbtypes="sqlite3, mysql"
  
  . /usr/share/dbconfig-common/dpkg/config
  dbc_go glewlwyd "$@" || true
  
  db_input medium glewlwyd/config_external_url || true
  db_go || true
  db_get glewlwyd/config_external_url
  EXTERNAL_URL=$RET

  db_input medium glewlwyd/config_reset_pwd || true
  db_go || true
  
  db_get glewlwyd/config_reset_pwd
  if [ "$RET" = "true" ]; then
    db_input medium glewlwyd/config_reset_pwd_host || true
    db_go || true
    
    db_input medium glewlwyd/config_reset_pwd_from || true
    db_go || true
    
    db_input medium glewlwyd/config_reset_pwd_subject || true
    db_go || true
    
  fi
  db_input medium glewlwyd/config_jwt_alg || true
  db_go || true
  
  db_get glewlwyd/config_jwt_alg
  JWT_ALG="$RET"
  
  db_input medium glewlwyd/config_jwt_key_size || true
  db_go || true
  
  if [ "$JWT_ALG" = "SHA" ]; then
    db_input medium glewlwyd/config_jwt_secret || true
    db_go || true
  else 
    db_input medium glewlwyd/config_jwt_generate_key || true
    db_go || true
  fi
  
fi

#DEBHELPER#