~ubuntu-branches/ubuntu/saucy/ebox/saucy

« back to all changes in this revision

Viewing changes to debian/ebox.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-04-07 10:13:48 UTC
  • Revision ID: james.westby@ubuntu.com-20080407101348-0prtgjqhgo3p75rp
Tags: 0.11.99-0ubuntu8
* debian/patches/11_progress_indicator_cleanup.dpatch
  - Clean up file descriptiors before running exec in progress indicator.
* debian/patches/12_ebox_init.dpatch
  - use /lib/lsb/init-functions to log start/stop fucntions.
* debian/patches/13_backup_configured_modules.dpatch
  - Backup only configured modules.
* Add preinst script to fetch from eBox's apache port and set it in debconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -e
 
4
 
 
5
. /usr/share/debconf/confmodule
 
6
 
 
7
#SCRIPTSCOMMON#
 
8
 
 
9
# Fetch apache port from eBox and set it in debconf
 
10
if [ "$1" = "upgrade" ] && [ -n "$2" ]; then
 
11
    fetch_ebox_port
 
12
    echo "Setting eBox port to $PORT"
 
13
    db_set  ebox/port $PORT || true
 
14
fi
 
15
 
 
16
exit 0