diff --git a/bin/cleanup_scripts.sh b/bin/cleanup_scripts.sh index 360883cf5..574fca005 100755 --- a/bin/cleanup_scripts.sh +++ b/bin/cleanup_scripts.sh @@ -27,7 +27,6 @@ then [ -f $NEWZNAB_PATH/update_predb.php ] && $PHP $NEWZNAB_PATH/update_predb.php true fi - CURRTIME=`date +%s` #every 2 hours and during first loop DIFF=$(($CURRTIME-$LASTOPTIMIZE2)) @@ -37,7 +36,9 @@ then cd $TESTING_PATH [ -f $TESTING_PATH/update_parsing.php ] && $PHP $TESTING_PATH/update_parsing.php [ -f $TESTING_PATH/removespecial.php ] && $PHP $TESTING_PATH/removespecial.php - [ -f $TESTING_PATH/update_cleanup.php ] && $PHP $TESTING_PATH/update_cleanup.php + if [[ $CLEANUP == "true" ]]; then + [ -f $TESTING_PATH/update_cleanup.php ] && $PHP $TESTING_PATH/update_cleanup.php + fi fi CURRTIME=`date +%s` diff --git a/edit_these.sh b/edit_these.sh index f892216bb..ba0227e80 100755 --- a/edit_these.sh +++ b/edit_these.sh @@ -20,6 +20,9 @@ export THREADS="true" #Choose your database, comment the one true/false export INNODB="true" +#Choose to run update_cleanup.php true/false +export CLEANUP="true" + #Choose which app to run in the middle right pane, of course it must be installed. Your choices are mytop and bwm-ng. #Only have 1 uncommented at a time.