~ahasenack/charms/precise/swift-proxy/handle-ppa-in-origin

« back to all changes in this revision

Viewing changes to hooks/swift-proxy-common

  • Committer: Adam Gandelman
  • Date: 2011-09-26 23:06:28 UTC
  • Revision ID: adamg@canonical.com-20110926230628-c135a81fitt7knk4
return 0 instead of exitting when installing from archive

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
\
140
140
function add_ppa {
141
141
  # Don't configure PPA, install from archive.
142
 
  [[ $PPA == "distro" ]] && exit 0
 
142
  [[ $PPA == "distro" ]] && return 0
143
143
  . /etc/lsb-release
144
144
  [[ $PPA == "milestone" ]] && PPA="release"
145
145
  PPA_URL="deb http://ppa.launchpad.net/swift-core/$PPA/ubuntu $DISTRIB_CODENAME main"