~jose/charms/trusty/owncloud/update-repo-trusty

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Charles Butler
  • Date: 2014-07-21 22:06:00 UTC
  • mfrom: (24.1.18 owncloud)
  • Revision ID: chuck@dasroot.net-20140721220600-e7bwo8pr9b88h84n
  José Antonio Rey 2014-07-21 Updated README, fixed idempotency on src option

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    DOMAIN=`unit-get public-address`
9
9
fi
10
10
 
 
11
if [ `cat .src` != `config-get src` ]; then
 
12
    if [ `cat .src` == source ]; then
 
13
        apt-get remove charm-helper-sh apache2 libapache2-mod-php5 php5-gd php5-mysql php5-sqlite curl libcurl3 php5-curl rpcbind nfs-common mysql-client -y
 
14
    elif [ `cat .src` == repo ]; then
 
15
        apt-get remove owncloud mysql-client -y
 
16
        apt-get autoremove -y
 
17
    fi
 
18
    hooks/install
 
19
fi
 
20
 
11
21
if [ `config-get customssl` == True ] && [ -z `config-get sslkey` ]; then
12
22
    juju-log "If you want to use a custom SSL cert, the key needs to be set. Exiting silently."
13
23
    exit 0