Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed May 23, 2015
2 parents f7032fc + d32ad81 commit 6f290dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions 1.0.0/5_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,16 @@ Copy paste the bash script
################################################################
# Check if memory is more than 70%, if so refresh nodejs scripts
##
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }' | echo $0 ) > 70.0 ]];
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }') > 70.0 ]];
then
/usr/bin/forever restartall ;
fi;

#############################################
# Only keep images of last 3 days on sd-card.
##
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;

##############################################################
# Check if disk size is more than 95%, if so remove some files
# from the capture directory.
Expand All @@ -258,11 +263,6 @@ Copy paste the bash script
rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 500);
fi;

#############################################
# Only keep images of last 3 days on sd-card.
##
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;

Give rights to bash script

chmod +x /home/bash/run.sh
Expand Down
12 changes: 6 additions & 6 deletions dev/5_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,16 @@ Copy paste the bash script
################################################################
# Check if memory is more than 70%, if so refresh nodejs scripts
##
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }' | echo $0 ) > 70.0 ]];
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }') > 70.0 ]];
then
/usr/bin/forever restartall ;
fi;

#############################################
# Only keep images of last 3 days on sd-card.
##
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;

##############################################################
# Check if disk size is more than 95%, if so remove some files
# from the capture directory.
Expand All @@ -258,11 +263,6 @@ Copy paste the bash script
rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 500);
fi;

#############################################
# Only keep images of last 3 days on sd-card.
##
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;

Give rights to bash script

chmod +x /home/bash/run.sh
Expand Down

0 comments on commit 6f290dd

Please sign in to comment.