SMARTVALUE NO-1 - roundcube
#!/bin/sh

#Roundcube SVN Updater
#Author  : Paul-Robert Archibald
#License : http://www.archtechnologies.co.uk/osl.html
#Version : 1.0

#Abort on any errors
set -e

#Edit These As Required
TEMP=newrc
RCINSTALL=roundcube

echo Downloading Roundcube
cd ~/
mkdir ~/${TEMP}
cd ~/${TEMP}
svn export https://svn.roundcube.net/trunk/roundcubemail

echo Removing Previous Roundcube Files
rm -rf ~/${RCINSTALL}/skins/default/
rm -rf ~/${RCINSTALL}/program/
rm ~/${RCINSTALL}/index.php
rm ~/${RCINSTALL}/.htaccess

echo Moving New Files
mv ~/${TEMP}/roundcubemail/program ~/${RCINSTALL}/program
mv ~/${TEMP}/roundcubemail/skins/default ~/${RCINSTALL}/skins/default
mv ~/${TEMP}/roundcubemail/index.php ~/${RCINSTALL}/index.php
mv ~/${TEMP}/roundcubemail/.htaccess ~/${RCINSTALL}/.htaccess

echo Copying New Configuration file
cp ~/${TEMP}/roundcubemail/config/main.inc.php.dist ~/${RCINSTALL}/config/main.inc.php.dist

echo Cleaning Surplus Files
cd ~/
rm -rf ~/${TEMP}

echo Please remember to check main.inc.php.dist for changes.
echo ---------- INSTALL COMPLETE! ----------
Today, there have been 3 visitors (9 hits) on this page!
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free