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-02-19 03:54:48 +01:00
|
|
|
echo "Replacing %CONTENT_DIR% in all HTML and PHP files."
|
|
|
|
CONTENT_DIR="/common/content"
|
2020-02-19 04:09:31 +01:00
|
|
|
echo -e "`find ./ -name '*.html' -or -name '*.php' | sed "s/^/workingfile=\'/;s/\$/\'\; cat \\\$workingfile > .\/tmpdeploymentfile\; cat tmpdeploymentfile | sed \'s#%CONTENT_DIR%#\$CONTENT_DIR#\' > \\\$workingfile/"`\nrm tmpdeploymentfile" | bash -
|
2020-02-19 03:54:48 +01:00
|
|
|
|
2020-02-12 10:26:59 +01:00
|
|
|
echo "==============================================================================
|
|
|
|
Done."
|