Skip to content

Instantly share code, notes, and snippets.

@dataich
Created August 2, 2011 03:52
Show Gist options
  • Select an option

  • Save dataich/1119572 to your computer and use it in GitHub Desktop.

Select an option

Save dataich/1119572 to your computer and use it in GitHub Desktop.
postinstall
#!/bin/sh
if [ -d ~/data/wp-content ]
then
rm -rf ~/current/wp-content
else
mkdir -p ~/data
mv ~/current/wp-content ~/data/wp-content
fi
ln -s ~/data/wp-content ~/current/wp-content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment