Last active
August 29, 2015 14:08
-
-
Save dexafree/72a09610afb4b4ed860f to your computer and use it in GitHub Desktop.
Upgrade Ghost installation
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/sh | |
GHOST_PATH=/var/ghost | |
### Make backup | |
tar cvzf ghostbackup.tar.gz $GHOST_PATH | |
### Download last ghost version | |
wget http://ghost.org/zip/ghost-latest.zip | |
### Remove core | |
rm -Rf $GHOST_PATH/core | |
### Unzip to ghost path | |
unzip -uo ghost-latest.zip -d $GHOST_PATH | |
### Install last dependencies | |
cd $GHOST_PATH | |
npm install --production | |
## Restart server and ghost | |
service ghost restart && service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment