Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Sep 17, 2015
1 parent 4c7e29c commit ed2ba9b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash -e

function main()
{
local -r attributeFile="${1}"

local -r appPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

source "${appPath}/../../../../../../../../cookbooks/tomcat/attributes/default.bash"

# Master and Slaves

local -r deleteCacheCommand="sudo rm -f -r \
~root/.cache \
~root/.jenkins \
~root/.m2 \
~root/.node-gyp \
~root/.npm \
~root/.oracle_jre_usage \
~root/.packer.d \
~root/.qws \
~root/tmp \
~${TOMCAT_USER_NAME}/.cache \
~${TOMCAT_USER_NAME}/.m2 \
~${TOMCAT_USER_NAME}/.node-gyp \
~${TOMCAT_USER_NAME}/.npm \
~${TOMCAT_USER_NAME}/.oracle_jre_usage \
~${TOMCAT_USER_NAME}/.packer.d \
~${TOMCAT_USER_NAME}/.qws \
~${TOMCAT_USER_NAME}/tmp \
"

"${appPath}/../../../../../../../../tools/run-remote-command.bash" \
--attribute-file "${attributeFile}" \
--command "${deleteCacheCommand}" \
--machine-type 'masters-slaves'
}

main "${@}"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function main()
"${appPath}/upgrade.bash" "${attributeFile}"
"${appPath}/clear-bash-history.bash" "${attributeFile}"
"${appPath}/clear-workspace.bash" "${attributeFile}"
"${appPath}/clean-home.bash" "${attributeFile}"
"${appPath}/reset-logs.bash" "${attributeFile}"
"${appPath}/clear-npm-cache.bash" "${attributeFile}"
# "${appPath}/restart-machines.bash" "${attributeFile}"
Expand Down

0 comments on commit ed2ba9b

Please sign in to comment.