User Tools

Site Tools


start:nightlyupgradedebian

This is an old revision of the document!


i-MSCP automatic update process ( Debian / Ubuntu )

Version Info

Script Version 0.2.0
Authori-MSCP Team → http://i-mscp.net
LicenseGPLv2
Last Update15.01.2014

Script

#!/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}
/var/www/virtual/i-mscp.net/wiki/htdocs/data/attic/start/nightlyupgradedebian.1421289426.txt.gz · Last modified: 2015/01/15 02:37 by nuxwin