This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
start:nightlyupgradedebian [2014/07/03 18:59] nuxwin |
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) ====== |
===== 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: "$branch" ####" | ||
- | mkdir -p /usr/local/src/$branch/imscp | ||
- | if [ ! -d /usr/local/src/$branch/imscp/.git ]; then | + | #!/bin/sh |
- | git clone -b $branch git://github.com/i-MSCP/imscp.git /usr/local/src/$branch/imscp | + | # |
- | else | + | # i-MSCP automatic update process ( Debian / Ubuntu ) |
- | cd /usr/local/src/$branch/imscp | + | # 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 | git pull | ||
- | fi | + | fi |
+ | |||
+ | #==== Starting i-MSCP installer ==== | ||
+ | perl imscp-autoinstall -d | ||
+ | |||
+ | cd ${pwd} | ||
- | #==== Start i-MSCP installer ==== | ||
- | perl /usr/local/src/$branch/imscp/imscp-autoinstall -d | ||
- | |||
- | </code> |