equal
deleted
inserted
replaced
|
1 #! /bin/sh |
|
2 |
|
3 set -e |
|
4 . /usr/share/debconf/confmodule |
|
5 |
|
6 # test "$1" = "purge" && { db_purge ha-sync/nodes; exit; } |
|
7 |
|
8 # Hostname(s) |
|
9 |
|
10 db_input high ha-sync/dir || true |
|
11 |
|
12 HOSTNAME=${HOSTNAME%-*} |
|
13 NODES="$HOSTNAME-a $HOSTNAME-b" |
|
14 db_set ha-sync/nodes "$NODES" |
|
15 db_input high ha-sync/nodes || true |
|
16 |
|
17 # Filesystems |
|
18 FILESYSTEMS=`egrep '[1-9][[:space:]]*$' /etc/fstab | while read dev fs rest; do echo -n "$fs, "; done` |
|
19 |
|
20 db_subst ha-sync/fs choices ${FILESYSTEMS%, } |
|
21 db_input high ha-sync/fs || true |
|
22 |
|
23 # Exclude file |
|
24 db_input low ha-sync/exclude || true |
|
25 |
|
26 db_go |