File: config

package info (click to toggle)
mason 1.0.0-13
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 2,300 kB
  • sloc: sh: 4,158; makefile: 104
file content (20 lines) | stat: -rw-r--r-- 412 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
#!/bin/sh

set -e
 
CONFIGFILE=/etc/masonrc

. /usr/share/debconf/confmodule

# Load config file, if it exists.
if [ -e $CONFIGFILE ]; then
	. $CONFIGFILE || true
	# Store values from config file into
	# debconf db.
	db_set mason/newrulepolicy "$NEWRULEPOLICY"
	db_set mason/defaultpolicy "$DEFAULTPOLICY"
fi

db_input medium mason/newrulepolicy || true
db_input medium mason/defaultpolicy || true
db_go || true