diff --git a/tasks/deadswitch.yml b/tasks/deadswitch.yml index 93d9f3b..56ec879 100644 --- a/tasks/deadswitch.yml +++ b/tasks/deadswitch.yml @@ -16,10 +16,10 @@ dest: /root/deadman/imdead.sh mode: u+rwx -- name: Copy dead message +- name: Copy dead patch template: - src: secrets/dead.md - dest: /root/deadman/dead.md + src: secrets/dead.patch + dest: /root/deadman/dead.patch - name: Install deadtrigger file: diff --git a/templates/blog/imdead.sh b/templates/blog/imdead.sh index 6117164..163cad0 100644 --- a/templates/blog/imdead.sh +++ b/templates/blog/imdead.sh @@ -2,12 +2,12 @@ cd $HOME/deadman -postTemplate='dead.md' +postPatch='dead.patch' pageName='openpunk/content/pages/dead.md' currDate=$(date '+%Y-%m-%d') git clone git@github.com:CPunch/openpunk.git -cp $postTemplate $pageName +git am postPatch # replace our --DATE-- with the current date sed -i 's/--DATE--/'$currDate'/g' $pageName