~marcoceppi/charms/precise/roundcube/tests

« back to all changes in this revision

Viewing changes to hooks/start

  • Committer: Nick Barcet
  • Date: 2011-12-10 11:02:33 UTC
  • Revision ID: nick.barcet@canonical.com-20111210110233-vr7fuma03y2jf3al
Fixing start hook (bug #795479 comment[0])
Removing complexity in config-changed (bug #795479 comment[4])

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# i.e. 'service apache2 start'
5
5
 
6
6
# We will start apache once the db is configured
7
 
#service apache2 start
 
7
 
 
8
set -eu # -x for verbose logging to juju debug-log
 
9
 
 
10
common="roundcube-common"
 
11
FORMULA_DIR=$(dirname $0)
 
12
if [[ -e $FORMULA_DIR/$common ]] ; then
 
13
    . $FORMULA_DIR/$common
 
14
else
 
15
    juju-log "ERROR: Could not load $common from $FORMULA_DIR"
 
16
    echo "ERROR: Could not load $common from $FORMULA_DIR"
 
17
    exit 1
 
18
fi
 
19
 
 
20
restart-apache