Skip to content

Commit

Permalink
Run installer only at start
Browse files Browse the repository at this point in the history
Run addon for ubuntu stemcells only
  • Loading branch information
aloismayr committed Mar 28, 2017
1 parent 9658c6b commit 89e3c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ case $1 in
curl -L -k -o $TMPDIR/Dynatrace-OneAgent-Linux.sh $DOWNLOADURL
chmod 755 $TMPDIR/Dynatrace-OneAgent-Linux.sh
install_path=$(getInstallDir)

sh $TMPDIR/Dynatrace-OneAgent-Linux.sh $ARGS INSTALL_PATH=$install_path >> $LOG_DIR/dynatrace-install.log 2>> $LOG_DIR/dynatrace-install.log

if pgrep -x "guardian" > /dev/null
Expand All @@ -77,6 +78,5 @@ case $1 in
fi

rm -rf /opt/dynatrace/oneagent
# unlink /opt/dynatrace/oneagent
;;
esac
4 changes: 3 additions & 1 deletion runtime-config-dynatrace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ addons:
jobs:
- name: dynatrace-oneagent
release: dynatrace-oneagent

include:
stemcell:
- os: ubuntu-trusty
properties:
dynatrace:
downloadurl: https://<environmentid>.live.dynatrace.com/installer/agent/unix/latest/<token>
Expand Down

0 comments on commit 89e3c35

Please sign in to comment.