Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2646 from mrunalp/bugs/idler_standalone_dbs
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed May 28, 2013
2 parents bbd321f + b822f4e commit fdca226
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions node-util/bin/oo-list-stale
Expand Up @@ -30,12 +30,15 @@ for APPHOME in $(gear_dirs); do
# Is stale detection disabled
[ -e "$APPHOME/.disable_stale" ] && continue

# Determine if something was committed using the git objects directory
objects_modified=$(find "$APPHOME/git" -mindepth 2 -maxdepth 2 -name objects -mtime -$days)
if [ -z "${objects_modified}" ]; then
uuid=$(basename "$APPHOME")
if /usr/sbin/oo-app-idle "$uuid" $days; then
echo "$uuid is stale"
# Only list gears that have any Frontend Mappings defined
if grep -r "Mappings:" `find $APPHOME -name 'manifest.yml'` &> /dev/null ; then
# Determine if something was committed using the git objects directory
objects_modified=$(find "$APPHOME/git" -mindepth 2 -maxdepth 2 -name objects -mtime -$days)
if [ -z "${objects_modified}" ]; then
uuid=$(basename "$APPHOME")
if /usr/sbin/oo-app-idle "$uuid" $days; then
echo "$uuid is stale"
fi
fi
fi
done
Expand Down

0 comments on commit fdca226

Please sign in to comment.