This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
start:nightlyupgradedebian [2015/01/14 23:39] 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 ===== | ||
Line 5: | Line 5: | ||
^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|2014.01.15| | + | |
==== Script ==== | ==== Script ==== | ||
- | <code bash> | ||
- | #!/bin/sh | ||
- | # | ||
- | # i-MSCP automatic Update process Debian | ||
- | # Version: 0.2.0 | ||
- | # Date: 2014.01.15 | ||
- | # License: GPLv2 | ||
- | # Author : gOOvER | ||
- | # Author : i-MSCP Team | ||
- | # Credits: i-mscp development Team | ||
- | # Branch from with 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> |