2020-02-08 00:36:50 +01:00
|
|
|
#!/bin/bash
|
2020-02-12 10:26:59 +01:00
|
|
|
echo "Deployment script for repository \"web-deployment\"
|
|
|
|
`date`
|
|
|
|
=============================================================================="
|
2020-02-12 05:49:44 +01:00
|
|
|
|
2020-03-12 22:21:48 +01:00
|
|
|
#activate ** globs
|
|
|
|
if [ -n "`shopt globstar | grep off`" ]; then shopt -s globstar; fi
|
|
|
|
#remove READMEs
|
2020-04-08 02:10:05 +02:00
|
|
|
rm ./threadr/**/README.md
|
2020-03-12 22:21:48 +01:00
|
|
|
|
2020-03-10 21:28:12 +01:00
|
|
|
#run the code variable replacement
|
2020-03-13 23:21:13 +01:00
|
|
|
echo -n "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass0.json/'`" | bash -
|
|
|
|
echo -n "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass1.json/'`" | bash -
|
|
|
|
echo -n "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass2.json/'`" | bash -
|
2020-02-19 03:54:48 +01:00
|
|
|
|
2020-03-10 21:28:12 +01:00
|
|
|
#the run-once section
|
2020-02-26 11:09:40 +01:00
|
|
|
echo "Checking run-once script..."
|
|
|
|
echo "Setting permissions."
|
|
|
|
chmod +x run-once-script.sh
|
|
|
|
|
2020-02-12 10:26:59 +01:00
|
|
|
echo "==============================================================================
|
|
|
|
Done."
|