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 [2015/01/15 02:37]
nuxwin
start:nightlyupgradedebian [2016/01/13 16:19]
nuxwin
Line 1: Line 1:
-====== i-MSCP automatic update process ( Debian / Ubuntu ) ======+====== i-MSCP automatic update process (Debian/​Ubuntu) ======
  
 ===== Version Info ===== ===== Version Info =====
Line 8: Line 8:
  
 ==== Script ==== ==== Script ====
-<code bash> 
-#!/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 +    #!/bin/sh 
-pwd=$(pwd) +    # 
- +    # i-MSCP automatic update process ( Debian / Ubuntu ) 
-#==== Installing/​Updating distro packages ==== +    # Version: 0.2.0 
-aptitude update +    # Date   : 15.01.2015 
-aptitude -y install git +    # License: GPLv2 
- +    # Author : i-MSCP Team 
-#==== Cloning / Updating i-MSCP git repository ==== +    # 
-clear +    # Note: This script must be run as root user. 
- +     
-mkdir -p /​usr/​local/​src/​imscp +    # Branch from which i-MSCP must be installed/​updated 
-cd /​usr/​local/​src/​imscp +    # Note: This can be also a specific git tag 
- +    branch="​1.2.x"​ 
-if [ ! -d .git ]; then+     
 +    ​# 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 ####"         echo "#### Cloning i-MSCP Git repository ####"
         git clone git://​github.com/​i-MSCP/​imscp.git .         git clone git://​github.com/​i-MSCP/​imscp.git .
         git checkout ${branch}         git checkout ${branch}
-else+    ​else
         echo "#### Updating i-MSCP Git repository ####"         echo "#### Updating i-MSCP Git repository ####"
         git fetch         git fetch
         git checkout ${branch}         git checkout ${branch}
         git pull         git pull
-fi +    ​fi 
- +     
-#==== Starting i-MSCP installer ==== +    #==== Starting i-MSCP installer ==== 
-perl imscp-autoinstall -d+    perl imscp-autoinstall -d 
 +     
 +    cd ${pwd}
  
-cd ${pwd} 
-</​code>​ 
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/start/nightlyupgradedebian.txt · Last modified: 2016/01/13 16:19 by nuxwin