mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-26 17:00:06 +00:00
CPunch
abaa4c9639
- all tasks/* have been moved to their own roles in roles/* - each file && template is now oragnized per-role - annotated each task which still isn't idempotent !TODO!
19 lines
413 B
Bash
19 lines
413 B
Bash
#!/bin/bash
|
|
|
|
cd $HOME/deadman
|
|
|
|
postPatch='dead.patch'
|
|
pageName='content/pages/dead.md'
|
|
currDate=$(date '+%Y-%m-%d')
|
|
|
|
git clone git@github.com:CPunch/openpunk.git
|
|
|
|
# commit & push the post
|
|
cd openpunk
|
|
git am postPatch
|
|
# replace our --DATE-- with the current date
|
|
sed -i 's/--DATE--/'$currDate'/g' $pageName
|
|
git add .
|
|
git commit -m "DeadSwitch: No response from CPunch in 14 days, posting dead.md"
|
|
git push --force
|