A simple bash script that performs many useful operations.
- Requires: wget or curl, php, tar.
- Tested on: Ubuntu 10+ and OSX Maverick.
- The update procedure does not work on OSX.
From an unix shell (we used Ubuntu), type the following commands:
wget -q https://raw.github.com/squallstar/bancha-bash/master/bancha.sh -O _bnc.sh
chmod +x _bnc.sh
sudo mv _bnc.sh /usr/bin/bancha
Or, if you have curl instead of wget:
curl -s https://raw.github.com/squallstar/bancha-bash/master/bancha.sh > _bnc.sh
chmod +x _bnc.sh
sudo mv _bnc.sh /usr/bin/bancha
To do a fresh Bancha install:
bancha install
The script will ask you for a directory (leave blank to install in the current path).
Update an existing installation to the latest available version on GitHub:
bancha update
The following folders will be updated: core and themes/admin. A backup copy of both directories will be created in their paths with a ._old. prefix.
To clear the website and administration cache (db, pages, settings, trees, content types):
bancha clear cache
To clear the image presets cache (tipically will be the /attach/cache directory):
bancha clear presets
To be added soon.