Created
April 11, 2013 10:36
-
-
Save jordanmerrick/5362370 to your computer and use it in GitHub Desktop.
Automatically update Pelican via Dropbox by using the following shell script as a cron running every minute. Just make sure your user can run "make" without needing sudo (causes a TTY error otherwise and fails).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Respawn="/home/user/Dropbox/files/respawn" | |
if [ -f $Respawn ] | |
then | |
make html -C /var/www/yoursite;rm $Respawn | |
else | |
exit 0 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment