diff --git a/deployment-script.sh b/deployment-script.sh index 592d1e6..85feb5f 100644 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -3,6 +3,11 @@ echo "Deployment script for repository \"web-deployment\" `date` ==============================================================================" +#activate ** globs +if [ -n "`shopt globstar | grep off`" ]; then shopt -s globstar; fi +#remove READMEs +rm ./threadr/**/README.md + #run the code variable replacement echo -n "`find -name "*.php" -or -name "*.html" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass0.json/'`" | bash - echo -n "`find -name "*.php" -or -name "*.html" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass1.json/'`" | bash - @@ -25,5 +30,6 @@ cp -v ./commands_ondemand.conf /var/www/strassenkind.ip/ cp -v ./commands_status.conf /var/www/strassenkind.ip/ echo "Done." + echo "============================================================================== Done."