User Tools

Site Tools


start:nightlyupgradedebian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start:nightlyupgradedebian [2014/02/07 14:22]
goover
start:nightlyupgradedebian [2016/01/13 16:19] (current)
nuxwin
Line 1: Line 1:
-====== i-MSCP automatic ​Update ​process Debian ====== +====== i-MSCP automatic ​update ​process ​(Debian/​Ubuntu) ​======
- +
-<WRAP center round important 80%> +
-As for **2014.02.03**,​ it's not recommended to use Git Master branch. Instead you should use the Stable branch. +
- +
-See http://​i-mscp.net/​index.php/​Thread/​4869-Git-Master-user-please-consider-to-no-longer-use-it/​ for more details +
-</​WRAP>​+
  
 ===== Version Info ===== ===== Version Info =====
-^Script Version | 0.1.0|+^Script Version | 0.2.0|
 ^Author|i-MSCP Team -> [[http://​i-mscp.net]]| ^Author|i-MSCP Team -> [[http://​i-mscp.net]]|
 ^License|GPLv2| ^License|GPLv2|
-^i-MSCP compatibility version | All Versions| +^Last Update|15.01.2014|
-^Last Update|07.02.2014|+
  
 ==== Script ==== ==== Script ====
-<code bash> 
-#!/bin/sh 
-# 
-# i-MSCP automatic Update process Debian 
-# Version: 0.1.0 
-# Date: 07.02.2014 
-# License: GPLv2 
-# Author : gOOvER 
-# Author : i-MSCP Team 
-# Credits: i-mscp development Team 
-# 
-# Variables ​ 
-# 
-# Use master for Master Branch ; Use stable for latest Stable Branch 
-# 
-branch="​stable"​ 
  
-#==== Installing/​Updating distro packages ==== 
-  aptitude update && aptitude safe-upgrade 
- aptitude install -y git 
-#==== Downloading current git/master branch state ==== 
- clear 
- echo "#### CLONING i-MSCP Git "​$branch"​ ####" 
- mkdir -p /​usr/​local/​src/​$branch/​imscp 
- if [ ! -d /​usr/​local/​src/​$branch/​imscp/​.git ]; then 
- git clone -b $branch git://​github.com/​i-MSCP/​imscp.git /​usr/​local/​src/​$branch/​imscp 
- else 
- cd /​usr/​local/​src/​$branch/​imscp 
-    git pull 
-  fi 
  
-#==== Start i-MSCP ​installer ​==== +    ​#!/bin/sh 
-perl /​usr/​local/​src/​$branch/​imscp/​imscp-autoinstall -d +    # 
-</​code>​+    # i-MSCP automatic update process ( Debian / Ubuntu ) 
 +    # Version: 0.2.0 
 +    # Date   : 15.01.2015 
 +    # License: GPLv2 
 +    # Author : i-MSCP 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.1391782932.txt.gz · Last modified: 2014/02/07 14:22 by goover