First you need to know witch version you have and download code for your version in (just an example)
/path_to_rc . Using some snippets from nightly update (!!!must run this as root!!! modify PATH_TO_RC and ROOTSQLPASSWORD!!! If you do not use Debian also modify "Set for debian" section):
Code:
#!/bin/bash
#MODIFY THIS
PATH_TO_RC="/path_to_rc"
ROOTSQLPASSWORD="YOURROOTSQLPASSWORD";
#Set for debian
INST_PREF="/tmp/ispcp"
CONF_DIR="/etc/ispcp"
ROOT_DIR="/var/www/ispcp"
CMD_ISPCPD="/etc/init.d/ispcp_daemon"
CMD_HTTPD="/usr/sbin/apache2ctl"
CMD_NAMED="/etc/init.d/bind9"
CMD_MTA="/etc/init.d/postfix"
#CODE START HERE
cd $PATH_TO_RC
make clean
make install
${CMD_ISPCPD} stop
bla=`find ${INST_PREF}/etc/ispcp -type d -name 'parts'`;
for x in $bla;
do
bla2=`echo ${x} | awk -F"${INST_PREF}|/parts" '{print $2}'`
cp -R $x $bla2
done
cp ${INST_PREF}${CONF_DIR}/apache/httpd.conf ${CONF_DIR}/apache/httpd.conf
cp ${INST_PREF}${CONF_DIR}/apache/working/ispcp.conf ${CONF_DIR}/apache/working/ispcp.conf
cat <<EOF | mysql -uroot -p${ROOTSQLPASSWORD} ispcp
UPDATE mail_users SET status='toadd' where status='ok';
UPDATE domain SET domain_status = 'change' WHERE domain_status = 'ok';
UPDATE domain_aliasses SET alias_status = 'change' WHERE alias_status = 'ok';
UPDATE subdomain SET subdomain_status = 'change' WHERE subdomain_status = 'ok';
TRUNCATE TABLE login;
EOF
${ROOT_DIR}/engine/ispcp-rqst-mngr
${CMD_ISPCPD} start
cd $PATH_TO_RC
make clean
${CMD_HTTPD} restart
${CMD_NAMED} restart
${CMD_MTA} restart