Title: [Bash] Bloggy Author: goakley Pastebin link: http://pastebin.com/SJjp07L5 First Edit: Wednesday 22nd of May 2013 12:52:13 PM CDT Last Edit: Wednesday 22nd of May 2013 12:52:13 PM CDT #!/bin/bash   su ubuntu   DROPBOXID="https://www.dropbox.com/sh/ahz62va3dzk99ws/X2NKwWVp2I?dl=1"   # download .markdown files from dropbox wget -O /tmp/apblg_posts.zip $DROPBOXID unzip -d /tmp/apblg_posts /tmp/apblg_posts.zip # clear the current posts rm /opt/octopress/source/_posts/*.markdown # add the new posts mv /tmp/apblg_posts/*/*.markdown /opt/octopress/source/_posts/ rm -rf /tmp/apblg_posts.zip /tmp/apblg_posts   # set the proper permissions on the posts sudo chown -R ubuntu:www-data /opt/octopress/source/_posts   # rebuild the blog cd /opt/octopress && sg www-data "/home/ubuntu/.rvm/gems/ruby-1.9.3-p392/bin/ra$