Skip to content
Snippets Groups Projects
Commit 62db4481 authored by Julien Bonjean's avatar Julien Bonjean
Browse files

[#1422] Moved distribution update to specific file

parent 906582dd
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-04-20
# Last Modified: 2009-05-14 16:16:49 -0400
# Last Modified: 2009-05-14 16:24:40 -0400
#####################################################
#
......@@ -208,7 +208,6 @@ if [ ${DO_PREPARE} ]; then
echo "Clone repository"
git clone ssh://repos-sflphone-git@sflphone.org/~/sflphone.git ${REPOSITORY_DIR} >/dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo " !! Cannot clone repository"
exit -1
......@@ -303,10 +302,6 @@ if [ ${DO_MAIN_LOOP} ]; then
sleep ${STARTUP_WAIT}
fi
echo "Doing updates"
${SSH_BASE} 'sudo apt-get update >/dev/null'
${SSH_BASE} 'sudo apt-get upgrade -y >/dev/null'
echo "Clean remote directory"
${SSH_BASE} "rm -rf ${REMOTE_DEPLOY_DIR} 2>/dev/null"
......
......@@ -52,7 +52,7 @@ if [ "$?" -ne "0" ]; then
exit -1
fi
# decompress reppository
# decompress repository
echo "Untar repository"
cd ${BUILD_DIR} && tar xf ${REPOSITORY_ARCHIVE}
......@@ -82,6 +82,10 @@ exec 2>&3
echo "SFLPhone version is ${VER}"
echo "Do updates"
sudo apt-get update >/dev/null
sudo apt-get upgrade -y >/dev/null
# generate the changelog, according to the distribution
echo "Generate changelogs"
sed -i 's/SYSTEM/'${OS_VERSION}'/g' ${REPOSITORY_SFLPHONE_COMMON_DIR}/debian/changelog && \
......
......@@ -7,7 +7,7 @@
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-13
# Last Modified: 2009-05-14 16:13:47 -0400
# Last Modified: 2009-05-14 16:24:44 -0400
#####################################################
# set -x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment