Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/squallstar/bancha-bash
A simple unix bash scripting utility written by Nicholas Valbusa for Bancha CMS.
https://github.com/squallstar/bancha-bash
Last synced: about 1 month ago
JSON representation
A simple unix bash scripting utility written by Nicholas Valbusa for Bancha CMS.
- Host: GitHub
- URL: https://github.com/squallstar/bancha-bash
- Owner: squallstar
- Created: 2012-04-16T17:14:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-09T15:24:52.000Z (over 10 years ago)
- Last Synced: 2024-05-02T00:19:03.208Z (7 months ago)
- Language: Shell
- Homepage: http://getbancha.com
- Size: 131 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Logo](http://getbancha.com/attach/logos/logo-bn.png)
# Bancha Bash Utilities
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**.## 1. How to install
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/banchaOr, 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## 2. Usage
### 2.1 Install Bancha on the current directory
To do a fresh Bancha install:bancha install
The script will ask you for a directory (leave blank to install in the current path).
---
### 2.2 Update an existing Bancha installation
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.---
## 3. Utilities
### 3.1 Clear the website/admin cache
To clear the website and administration cache (db, pages, settings, trees, content types):
bancha clear cache
---
### 3.2 Clear the image presets cache
To clear the image presets cache (tipically will be the **/attach/cache** directory):
bancha clear presets
---
### 3.3 Clear the minified resources cache
**To be added soon.**