練功房推薦書單

  • 猛虎出柙雙劍合璧版:最新 OCA / OCP Java SE 7 Programmer 專業認證
  • 流浪教師存零股存到3000萬
  • SCJP 6.0認證教戰手冊(第二版)Oracle Certified Professional Java Programmer(附光碟)
  • 小資女艾蜜莉:我的資產翻倍存股筆記
OLAT 6.0.0->6.0.4升級筆記  RSS feed
Forum Index » OLAT中文社群 OLAT Chinese Users Community
Author Message
andowson

七段學員
[Avatar]

Joined: 2007-01-02 22:20:40
Messages: 705
Location: 台北
Offline
cd ~/download
mv olat3 olat-6.0.0
wget http://www.olat.org/downloads/stable/OLAT-6.0.4.zip
unzip OLAT-6.0.4.zip
mv OLAT-6.0.4-FINAL-* olat3
cd olat3
sed -e "s/\/usr\/local\/opt\/olat\/olat3/\/home\/andowson\/download\/olat3/g" \
-e "s/\/usr\/local\/opt\/olat\/olatdata/\/home\/andowson\/www\/data\/olatdata/g" \
-e "1,$$s/myolat/andowson/g" \
-e "s/smtp.host=smtp.andowson.com/smtp.host=mail.andowson.com/" \
-e "s/\/usr\/local\/opt\/tomcat/\/var\/tomcat5/g" \
-e "1,$$s/net.sf.hibernate/org.hibernate/g" \
-e "48c\server.modjk.enabled=true" \
-e "95,117d" \
-e "1,$$s/#db/db/g" \
-e "s/instantMessaging.enable=false/instantMessaging.enable=true/" \
-e "s/instantMessaging.server.name=jabber.andowson.com/instantMessaging.server.name=www.andowson.com/" \
-e "s/instantMessaging.generateTestUsers=false/instantMessaging.generateTestUsers=true/" \
-e "s/instantMessaging.db.name=wildfire/instantMessaging.db.name=openfire/" \
-e "s/instantMessaging.db.user=wildfire/instantMessaging.db.user=olat/" \
-e "s/instantMessaging.db.pass=wildfire/instantMessaging.db.pass=olat/" build.properties.default > build.properties
ant install
ant jsmath
sudo /etc/init.d/tomcat stop
mv ~/www/olat /tmp/olat-6.0.0
cp -rf ~/download/olat3/webapp ~/www/olat
cp -rf ~/download/olat3/htdocs/* ~/www/olat
sed -i -e "13c\        <\!-- default session timeout -->" ~/www/olat/WEB-INF/web.xml
rm -rf ~/www/olat/WEB-INF/src
rm -rf ~/www/olat/WEB-INF/patchesSrc
rm -rf ~/www/olat/WEB-INF/test
cp /tmp/olat-6.0.0/WEB-INF/classes/hibernate.properties ~/www/olat/WEB-INF/classes/.
chgrp -R tomcat ~/www/olat
chgrp -R tomcat ~/www/data/olatdata
chmod 775 ~/www/olat/static
chmod 775 ~/www/olat/WEB-INF
sudo -u postgres pg_dump olat > /tmp/olat.bak
sudo psql -U olat olat -f  /home/andowson/download/olat3/database/postgresql/alter_6_0_0_to_6_0_3.sql
sudo psql -U olat olat -f  ~/download/olat3/database/postgresql/alter_6_0_0_to_6_0_3.sql
sudo /etc/init.d/tomcat start

分享經驗 累積智慧
[WWW] [MSN]
 
Forum Index » OLAT中文社群 OLAT Chinese Users Community
Go to: