Added dead switch

This commit is contained in:
2022-05-30 23:36:55 -05:00
parent e795959672
commit 201d17efaa
12 changed files with 88 additions and 18 deletions

1
templates/.zshrc Normal file
View File

@@ -0,0 +1 @@
source /root/powerlevel10k/powerlevel10k.zsh-theme

View File

@@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash
# This is meant to be run by cron, just setup a cronjob to run this script every day or so
# This script checks if a file ($fileSwitch) is last modified > $dayLimit days ago & if so a script is run
# On your computer or laptop, setup a cronjob to run an ssh command to modify $fileSwitch every couple hours or so.

View File

@@ -9,11 +9,11 @@ currDate=$(date '+%Y-%m-%d')
git clone git@github.com:CPunch/openpunk.git
cp $postTemplate $pageName
# replace our {{DATE}} with the current date
sed -i 's/{{DATE}}/'$currDate'/g' $pageName
# replace our --DATE-- with the current date
sed -i 's/--DATE--/'$currDate'/g' $pageName
# commit & push the post
cd openpunk
git add .
git commit -m "DeadSwitch: Posted dead message"
git push
git commit -m "DeadSwitch: No response from CPunch in 14 days, posting dead.md"
git push --force