diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2006-08-27 10:19:27 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2006-08-27 10:19:27 +0000 |
commit | d9ff96f60f8aa7515d440df0d233649f99f3438c (patch) | |
tree | 6f83bdb9cfc1a02f775a552972a043895e5fcaaf /debian/sitesummary-client.postinst | |
parent | d2e613ce766fe9d17d326b05d5a9688426000f09 (diff) | |
download | sitesummary-d9ff96f60f8aa7515d440df0d233649f99f3438c.tar.gz sitesummary-d9ff96f60f8aa7515d440df0d233649f99f3438c.tar.bz2 sitesummary-d9ff96f60f8aa7515d440df0d233649f99f3438c.tar.xz |
* Add debconf question for site, and start on code to ask for
collector URL.
Diffstat (limited to 'debian/sitesummary-client.postinst')
-rw-r--r-- | debian/sitesummary-client.postinst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/sitesummary-client.postinst b/debian/sitesummary-client.postinst new file mode 100644 index 0000000..88dddcc --- /dev/null +++ b/debian/sitesummary-client.postinst @@ -0,0 +1,25 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get sitesummary/collector_url +URL="$RET" + +db_get sitesummary/site +SITE="$RET" + +# Only replace the site file if the content changed +if [ -f /etc/sitesummary/site ] ; then + OLDSITE=`cat /etc/sitesummary/site` + if [ "$SITE" != "$OLDSITE" ] ; then + echo "$SITE" > /etc/sitesummary/site + fi +else + echo "$SITE" > /etc/sitesummary/site +fi + +db_stop + +#DEBHELPER# |