2011-04-22, 08:10 PM
Today I was helping someone to figure out what was going wrong with his MyBB installation. To be absolutely sure that he downloaded, extracted and change the modes to the necessary folders and files I created a sexy one-liner.
The world is nothing if we don't share, so:
This will download and extract the latest MyBB version into the current folder. Make sure you are in the correct folder.
Requirements:
- access to command line interface of the server
- wget must be installed and available for the user
- unzip must be installed and available for the user
REMIXES
=======
by Dylan M. (uses curl instead of wget)
by Dylan M. (uses aria2 instead of wget). Requires aria2 1.9.3 or above:
by Dylan M. (uses lynx instead of wget).
The world is nothing if we don't share, so:
wget --content-disposition http://www.mybb.com/download/latest -O mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php
This will download and extract the latest MyBB version into the current folder. Make sure you are in the correct folder.
Requirements:
- access to command line interface of the server
- wget must be installed and available for the user
- unzip must be installed and available for the user
REMIXES
=======
by Dylan M. (uses curl instead of wget)
curl http://www.mybb.com/download/latest -o mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php
by Dylan M. (uses aria2 instead of wget). Requires aria2 1.9.3 or above:
aria2c http://www.mybb.com/download/latest -o mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php
by Dylan M. (uses lynx instead of wget).
lynx -crawl -dump http://www.mybb.com/download/latest > mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php