ispCP - Board - Support
How to setup a server to follow development? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: How to setup a server to follow development? (/thread-3198.html)

Pages: 1 2 3 4 5


RE: How to setup a server to follow development? - sci2tech - 05-16-2008 02:02 AM

You have to modify
Quote:cd ..
rm -fRv "${TRUNK_DIR}"
/etc/init.d/apache2 restart
/etc/init.d/bind9 restart
in
Quote:cd /
rm -fRv "${TRUNK_DIR}"
/etc/init.d/apache2 restart
/etc/init.d/bind9 restart



RE: How to setup a server to follow development? - gOOvER - 05-16-2008 02:24 AM

Thanx sci2tech. It works. Edited also in Wiki Smile


RE: How to setup a server to follow development? - kilburn - 05-16-2008 02:29 AM

To update your local tree instead of downloading it all each run (saves resources on you AND the isp-control svn server!) you only need to replace the download block with this one and adjust the TRUNK_DIR variable:

Code:
# TRUNK_DIR now specifies the path to the ispcp folder, not it's parent
TRUNK_DIR="/usr/src/ispcp"

#download/update trunk
if [ -d ${TRUNK_DIR} ]; then
        cd ${TRUNK_DIR}
        svn up
else
        mkdir -p ${TRUNK_DIR}
        svn checkout http://www.isp-control.net/ispcp_svn/trunk/ ${TRUNK_DIR}
        cd ${TRUNK_DIR}
fi



RE: How to setup a server to follow development? - sci2tech - 05-16-2008 02:43 AM

Kilburn you are absolutly right. This is the way it should be done from the start. I`ll modify the wiki too.


RE: How to setup a server to follow development? - Cube - 05-16-2008 02:55 AM

What's the advantage of "svn up" compared to "svn checkout"? "svn checkout" also only updates the copy if it already exists.


RE: How to setup a server to follow development? - kilburn - 05-16-2008 03:05 AM

I just never tried it but you're right, checkout and update work exactly the same way when the folder exists! New code then:

Code:
#download/update trunk
mkdir -p ${TRUNK_DIR}
svn checkout http://www.isp-control.net/ispcp_svn/trunk/ ${TRUNK_DIR}
cd ${TRUNK_DIR}

Oh, and get rid of this line:
Code:
rm -fRv "${TRUNK_DIR}"

Much simpler, thanks Cube


RE: How to setup a server to follow development? - sci2tech - 05-20-2008 02:37 AM

Updated Nightly Updatescript: http://www.isp-control.net/documentation/start/scripts/updatenightly to remove old ispcp version (missed a bug without this modify)


RE: How to setup a server to follow development? - gOOvER - 05-20-2008 12:29 PM

Sometimes the package list is also changed. What do you think about to insert also an apt-get update /upgrade and check the package list also?

I know, this is really lazy Smile


RE: How to setup a server to follow development? - sci2tech - 05-20-2008 04:39 PM

Done Tongue


RE: How to setup a server to follow development? - gOOvER - 05-20-2008 05:24 PM

Wow, very Quick Smile thanks again sci2tec