Debian Codegraph @

debian/config

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -e
4
5 . /usr/share/debconf/confmodulescip-shell source . . `/usr/share/debconf/confmodule`.
6
7 config="/etc/prometheus-nextcloud-exporter.ymlscip-shell filesystem . . `/etc/prometheus-nextcloud-exporter.yml`."
8
9 get_config_optionscip-shell shell shell-project 0.0.0 get_config_option(). () {
10 option="$1"
11 [scip-shell system . . `[`. -f "$config" ] || return
12 sedscip-shell system . . sed. -n -e "s/\s*$option\s*:\s*\"\(.*\)\"\s*$/\1/p" "$config"
13 }
14
15 if [scip-shell system . . `[`. -f "$config" ]; then
16 db_set prometheus-nextcloud-exporter/server "$(get_config_optionscip-shell shell shell-project 0.0.0 get_config_option(). server)"
17 db_set prometheus-nextcloud-exporter/username "$(get_config_optionscip-shell shell shell-project 0.0.0 get_config_option(). username)"
18 db_set prometheus-nextcloud-exporter/password "$(get_config_optionscip-shell shell shell-project 0.0.0 get_config_option(). password)"
19 fi
20
21 db_beginblock
22 db_input medium prometheus-nextcloud-exporter/server || truescip-shell system . . true.
23 db_input medium prometheus-nextcloud-exporter/username || truescip-shell system . . true.
24 db_input medium prometheus-nextcloud-exporter/password || truescip-shell system . . true.
25 db_endblock
26 db_go