From 654d1030f1da47479a93a3963402031771563ac2 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Sun, 25 Jun 2017 16:56:25 +0200 Subject: [PATCH] Remove old script files - all replaced with new generator scripts. --- travisCI/old_scripts/default.vhost | 11 -- travisCI/old_scripts/deploy-package.sh | 20 ---- travisCI/old_scripts/index.php | 5 - travisCI/old_scripts/install-nginx.sh | 67 ----------- .../old_scripts/modify-files-and-commit.sh | 31 ------ .../old_scripts/modify-globalblacklist.sh | 79 ------------- travisCI/old_scripts/modify-readme.sh | 104 ------------------ 7 files changed, 317 deletions(-) delete mode 100644 travisCI/old_scripts/default.vhost delete mode 100755 travisCI/old_scripts/deploy-package.sh delete mode 100644 travisCI/old_scripts/index.php delete mode 100755 travisCI/old_scripts/install-nginx.sh delete mode 100755 travisCI/old_scripts/modify-files-and-commit.sh delete mode 100755 travisCI/old_scripts/modify-globalblacklist.sh delete mode 100755 travisCI/old_scripts/modify-readme.sh diff --git a/travisCI/old_scripts/default.vhost b/travisCI/old_scripts/default.vhost deleted file mode 100644 index 4e68cb8c8..000000000 --- a/travisCI/old_scripts/default.vhost +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen *:9000; - - root /var/www/html; - server_name localhost; - charset UTF-8; - - location / { - root /var/www/html/; - } -} diff --git a/travisCI/old_scripts/deploy-package.sh b/travisCI/old_scripts/deploy-package.sh deleted file mode 100755 index 57fdbf0ca..000000000 --- a/travisCI/old_scripts/deploy-package.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -YEAR=$(date +"%Y") -MONTH=$(date +"%m") - -# Make Sure we are in the Build Directory -cd $TRAVIS_BUILD_DIR - -# Create our Version Number -export GIT_TAG=V3.$YEAR.$MONTH.$TRAVIS_BUILD_NUMBER - -# Tag our release -git tag $GIT_TAG -a -m "V3.$YEAR.$MONTH.$TRAVIS_BUILD_NUMBER" - -# Push our commit and tags back to the repo -sudo git push origin master && git push origin master --tags - -# Uncomment to list all git folders and modified files etc -#ls -aR - -# Now TravisCI moves into the deploy: section of TravisCI - see .travis.yml diff --git a/travisCI/old_scripts/index.php b/travisCI/old_scripts/index.php deleted file mode 100644 index 1081dac02..000000000 --- a/travisCI/old_scripts/index.php +++ /dev/null @@ -1,5 +0,0 @@ -> $_tmpnginxA -#runtime=$(python -c "print(${end} - ${start})") -printf "###################################################\n### Version: "$MY_GIT_TAG"\n### Updated: "$now"\n### Bad Referrer Count: "$BAD_REFERRERS"\n### Bad Bot Count: "$BAD_BOTS"\n###################################################\n" >> $_tmpnginxA -echo $_endmarker >> $_tmpnginxA -IFS=$LASTUPDATEIFS -mv $_tmpnginxA $_inputdbA -ed -s $_inputdbA<<\IN -1,/### Version Information #/d -/### Version Information ##/,$d -,d -.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/conf.d/globalblacklist.conf -/### Version Information #/x -.t. -.,/### Version Information ##/-d -#,p -#,p used to print output replaced with w below to write -w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/conf.d/globalblacklist.conf -q -IN -rm $_inputdbA - -# PRINT VERSION INFORMATION INTO GLOBALBLACKLIST FILE 2 -# ***************************************************** -LASTUPDATE2IFS=$IFS -IFS=$'\n' -now="$(date)" -end=$(date +%s.%N) -echo $_startmarker >> $_tmpnginxB -#runtime=$(python -c "print(${end} - ${start})") -printf "###################################################\n### Version: "$MY_GIT_TAG"\n### Updated: "$now"\n### Bad Referrer Count: "$BAD_REFERRERS"\n### Bad Bot Count: "$BAD_BOTS"\n###################################################\n" >> $_tmpnginxB -echo $_endmarker >> $_tmpnginxB -IFS=$LASTUPDATE2IFS -mv $_tmpnginxB $_inputdbA -ed -s $_inputdbA<<\IN -1,/### Version Information #/d -/### Version Information ##/,$d -,d -.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_sample_config_files/Engintron_for_cPanel_WHM_Configuration_Example/etc/nginx/conf.d/globalblacklist.conf -/### Version Information #/x -.t. -.,/### Version Information ##/-d -#,p -#,p used to print output replaced with w below to write -w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_sample_config_files/Engintron_for_cPanel_WHM_Configuration_Example/etc/nginx/conf.d/globalblacklist.conf -q -IN -rm $_inputdbA - -exit 0 diff --git a/travisCI/old_scripts/modify-readme.sh b/travisCI/old_scripts/modify-readme.sh deleted file mode 100755 index 23e1b63c0..000000000 --- a/travisCI/old_scripts/modify-readme.sh +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/bash -# Write Build / Version Number into README.md -# Created by: https://github.com/mitchellkrogza (mitchellkrog@gmail.com) -# Copyright: Mitchell Krog - https://github.com/mitchellkrogza - -# Start time of script generation -start=$(date +%s.%N) -versionyear=$(date +%Y) -versionmonth=$(date +%m) -MY_GIT_TAG=V3.$versionyear.$versionmonth.$TRAVIS_BUILD_NUMBER -BAD_REFERRERS=$(wc -l < /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-referrers.list) -BAD_BOTS=$(wc -l < /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-user-agents.list) - -# Temporary database files we create -_inputdbA=/tmp/lastupdated.db -_tmpnginxA=tmpnginxA - -# Start and End Strings to Search for to do inserts into template -_startmarker="##### Version Information #" -_endmarker="##### Version Information ##" - -# PRINT VERSION INFORMATION INTO README.md -# **************************************** -LASTUPDATEIFS=$IFS -IFS=$'\n' -now="$(date)" -end=$(date +%s.%N) -echo $_startmarker >> $_tmpnginxA -runtime=$(python -c "print(${end} - ${start})") -printf "********************************************\n#### Version: "$MY_GIT_TAG"\n#### Bad Referrer Count: "$BAD_REFERRERS"\n#### Bad Bot Count: "$BAD_BOTS"\n********************************************\n" >> $_tmpnginxA -echo $_endmarker >> $_tmpnginxA -IFS=$LASTUPDATEIFS -mv $_tmpnginxA $_inputdbA -ed -s $_inputdbA<<\IN -1,/##### Version Information #/d -/##### Version Information ##/,$d -,d -.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md -/##### Version Information #/x -.t. -.,/##### Version Information ##/-d -#,p -#,p used to print output replaced with w below to write -w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md -q -IN -rm $_inputdbA - -# PRINT VERSION INFORMATION INTO AUTO-CONFIGURATION.md -# **************************************************** -LASTUPDATEIFS2=$IFS -IFS=$'\n' -now="$(date)" -end=$(date +%s.%N) -echo $_startmarker >> $_tmpnginxA -runtime=$(python -c "print(${end} - ${start})") -printf "********************************************\n#### Version: "$MY_GIT_TAG"\n#### Bad Referrer Count: "$BAD_REFERRERS"\n#### Bad Bot Count: "$BAD_BOTS"\n********************************************\n" >> $_tmpnginxA -echo $_endmarker >> $_tmpnginxA -IFS=$LASTUPDATEIFS2 -mv $_tmpnginxA $_inputdbA -ed -s $_inputdbA<<\IN -1,/##### Version Information #/d -/##### Version Information ##/,$d -,d -.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md -/##### Version Information #/x -.t. -.,/##### Version Information ##/-d -#,p -#,p used to print output replaced with w below to write -w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md -q -IN -rm $_inputdbA - -# PRINT VERSION INFORMATION INTO MANUAL-CONFIGURATION.md -# ****************************************************** -LASTUPDATEIFS3=$IFS -IFS=$'\n' -now="$(date)" -end=$(date +%s.%N) -echo $_startmarker >> $_tmpnginxA -runtime=$(python -c "print(${end} - ${start})") -printf "********************************************\n#### Version: "$MY_GIT_TAG"\n#### Bad Referrer Count: "$BAD_REFERRERS"\n#### Bad Bot Count: "$BAD_BOTS"\n********************************************\n" >> $_tmpnginxA -echo $_endmarker >> $_tmpnginxA -IFS=$LASTUPDATEIFS3 -mv $_tmpnginxA $_inputdbA -ed -s $_inputdbA<<\IN -1,/##### Version Information #/d -/##### Version Information ##/,$d -,d -.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md -/##### Version Information #/x -.t. -.,/##### Version Information ##/-d -#,p -#,p used to print output replaced with w below to write -w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md -q -IN -rm $_inputdbA - - -exit 0