things could really be prettier
This commit is contained in:
parent
b9eb9da5b1
commit
82734201a9
1 changed files with 6 additions and 4 deletions
|
|
@ -5,10 +5,12 @@ SITE_DIR="/path/to/your-cloned-git"
|
||||||
WEBROOT="/probably/var/www/html"
|
WEBROOT="/probably/var/www/html"
|
||||||
LOG_FILE="$HOME/nostr-site-deploy.log"
|
LOG_FILE="$HOME/nostr-site-deploy.log"
|
||||||
|
|
||||||
echo "Last run"
|
echo "" >> $LOG_FILE
|
||||||
date '+%Y-%m-%d %H:%M:%S' > $LOG_FILE # we wipe the log file from rpevious entries, because no history here is super important
|
echo "Last run" > $LOG_FILE # we wipe the log file from rpevious entries, because no history here is super important
|
||||||
echo ""
|
date '+%Y-%m-%d %H:%M:%S' >> $LOG_FILE
|
||||||
echo ""
|
echo "" >> $LOG_FILE
|
||||||
|
echo "" >> $LOG_FILE
|
||||||
|
|
||||||
cd $SITE_DIR
|
cd $SITE_DIR
|
||||||
/usr/bin/git pull >> $LOG_FILE
|
/usr/bin/git pull >> $LOG_FILE
|
||||||
/usr/bin/bash fetch-and-convert.sh >> $LOG_FILE
|
/usr/bin/bash fetch-and-convert.sh >> $LOG_FILE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue