Revision 5157f932
b/debian/snf-image.config | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
|
|
3 |
set -e |
|
4 |
|
|
5 |
# Source debconf library |
|
6 |
. /usr/share/debconf/confmodule |
|
7 |
|
|
8 |
db_input medium snf-image/dlurl || true |
|
9 |
db_go || true |
b/debian/snf-image.postinst | ||
---|---|---|
2 | 2 |
|
3 | 3 |
set -e |
4 | 4 |
|
5 |
case "$1" in |
|
6 |
configure|reconfigure) |
|
7 |
/usr/bin/snf-image-update-helper -y |
|
8 |
;; |
|
9 |
|
|
10 |
abort-upgrade|abort-remove|abort-deconfigure) |
|
11 |
;; |
|
12 |
|
|
13 |
*) |
|
14 |
echo "postinst called with unknown argument \`$1'" >&2 |
|
15 |
exit 1 |
|
16 |
;; |
|
17 |
esac |
|
5 |
. /usr/share/debconf/confmodule |
|
6 |
|
|
7 |
db_get snf-image/dlurl |
|
8 |
URL="$RET" |
|
9 |
|
|
10 |
if [ -n "$URL" ]; then |
|
11 |
snf-image-update-helper -y -u "$URL" |
|
12 |
else |
|
13 |
snf-image-update-helper -y |
|
14 |
fi |
|
15 |
|
|
18 | 16 |
|
19 | 17 |
#DEBHELPER# |
20 | 18 |
|
b/debian/snf-image.templates | ||
---|---|---|
1 |
Template: snf-image/dlurl |
|
2 |
Type: string |
|
3 |
Default: |
|
4 |
Description: URL to download snf-image-helper from: |
|
5 |
This package already contains a build-in URL to download the helper image from. |
|
6 |
However, if you'd like to use a custom one, please enter the full URL. If not, |
|
7 |
just leave the field blank. |
Also available in: Unified diff