This is an old revision of the document!
Script Version | 0.2.0 |
---|---|
Author | i-MSCP Team → http://i-mscp.net |
License | GPLv2 |
Last Update | 15.01.2014 |
#!/bin/sh # # i-MSCP automatic update process ( Debian / Ubuntu ) # Version: 0.2.0 # Date : 15.01.2015 # License: GPLv2 # Author : gOOvER # Author : i-MSCP Team # Credits: i-mscp development Team # # Note: This script must be run as root user. # Branch from which i-MSCP must be installed/updated # Note: This can be also a specific git tag branch="1.2.x" # Current directory pwd=$(pwd) #==== Installing/Updating distro packages ==== aptitude update aptitude -y install git #==== Cloning / Updating i-MSCP git repository ==== clear mkdir -p /usr/local/src/imscp cd /usr/local/src/imscp if [ ! -d .git ]; then echo "#### Cloning i-MSCP Git repository ####" git clone git://github.com/i-MSCP/imscp.git . git checkout ${branch} else echo "#### Updating i-MSCP Git repository ####" git fetch git checkout ${branch} git pull fi #==== Starting i-MSCP installer ==== perl imscp-autoinstall -d cd ${pwd}