Skip to content

Commit 6f290dd

Browse files
author
cedricve
committed
Merge branch 'develop'
2 parents f7032fc + d32ad81 commit 6f290dd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

1.0.0/5_FAQ.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,16 @@ Copy paste the bash script
244244
################################################################
245245
# Check if memory is more than 70%, if so refresh nodejs scripts
246246
##
247-
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }' | echo $0 ) > 70.0 ]];
247+
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }') > 70.0 ]];
248248
then
249249
/usr/bin/forever restartall ;
250250
fi;
251251

252+
#############################################
253+
# Only keep images of last 3 days on sd-card.
254+
##
255+
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;
256+
252257
##############################################################
253258
# Check if disk size is more than 95%, if so remove some files
254259
# from the capture directory.
@@ -258,11 +263,6 @@ Copy paste the bash script
258263
rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 500);
259264
fi;
260265

261-
#############################################
262-
# Only keep images of last 3 days on sd-card.
263-
##
264-
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;
265-
266266
Give rights to bash script
267267

268268
chmod +x /home/bash/run.sh

dev/5_FAQ.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,16 @@ Copy paste the bash script
244244
################################################################
245245
# Check if memory is more than 70%, if so refresh nodejs scripts
246246
##
247-
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }' | echo $0 ) > 70.0 ]];
247+
if [[ $(free | grep Mem | awk -F' ' '{ print $3/$2*100 }') > 70.0 ]];
248248
then
249249
/usr/bin/forever restartall ;
250250
fi;
251251

252+
#############################################
253+
# Only keep images of last 3 days on sd-card.
254+
##
255+
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;
256+
252257
##############################################################
253258
# Check if disk size is more than 95%, if so remove some files
254259
# from the capture directory.
@@ -258,11 +263,6 @@ Copy paste the bash script
258263
rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 500);
259264
fi;
260265

261-
#############################################
262-
# Only keep images of last 3 days on sd-card.
263-
##
264-
find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \;
265-
266266
Give rights to bash script
267267

268268
chmod +x /home/bash/run.sh

0 commit comments

Comments
 (0)