~canonical-ci-engineering/charms/xenial/jenkins-remote-slave/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: James Page
  • Date: 2012-08-06 09:45:47 UTC
  • mfrom: (9.1.9 jenkins-slave)
  • Revision ID: james.page@canonical.com-20120806094547-bpd0e8is3l06qj0b
Fix configuration issue and add extension features

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
install_slave () {
6
6
        juju-log "Installing jenkins-slave..."
7
 
        apt-get -y install python-software-properties
8
 
        add-apt-repository ppa:hudson-ubuntu/testing
9
 
        apt-get update || true
10
 
        apt-get -y install -qq jenkins-slave
 
7
        apt-get -y install -qq jenkins-slave wget
11
8
}
12
9
[[ -f /etc/init/jenkins-slave.conf ]] || install_slave
13
10
 
16
13
        juju-log "Installing tools..."
17
14
        apt-get -y install -qq `config-get tools`
18
15
}
19
 
install_tools 
 
16
install_tools
 
17
 
 
18
# Execute any hook overlay which may be provided
 
19
# by forks of this charm
 
20
if [ -d hooks/install.d ]
 
21
then
 
22
    for i in `ls -1 hooks/install.d/*`
 
23
    do
 
24
        [[ -x $i ]] && . ./$i
 
25
    done
 
26
fi
20
27
 
21
28
exit 0