updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / foswiki / foswiki.install
blobe4be5db0babe3ff1b13fb9821ba8cc62851f2b66
1 # Version 1.1.0-7
2 post_install(){
3         echo "
4 Foswiki setup:
6 1. Replace 'localhost' with your server name in file  /etc/httpd/conf/extra/httpd-foswiki.conf
8 2. Add line 'Include conf/extra/httpd-foswiki.conf' to /etc/httpd/conf/httpd.conf  e.g.
9 sudo sh -c \"echo  'Include conf/extra/httpd-foswiki.conf' >> /etc/httpd/conf/httpd.conf\"
11 3. Restart Apache: sudo /etc/rc.d/httpd restart
13 4. Open http://YOUR_SERVER_NAME/foswiki/bin/configure with your favorite browser and follow instructions.
14         "
15         cd /srv/http/htdocs
16         rm -f foswiki
17         chown -R http:http foswiki-$1
18         ln -s foswiki-$1 foswiki
20 post_upgrade(){
21         cd /srv/http/htdocs
22         rm -f foswiki
23         chown -R http:http foswiki-$1
24         ln -s foswiki-$1 foswiki
25         if [ $1 != $2 ] && [ -d foswiki-$2 ]; then
26                 echo "
27         Move your pages and settings from /srv/http/htdocs/foswiki-$2 to /srv/http/htdocs/foswiki-$1.
28         Detailed upgrade guide: http://foswiki.org/System/UpgradeGuide.
29         Note: You'll need to restart the web server if you're using mod_perl or FastCGI).
30                 "
31         fi
33 post_remove(){
34         rm -f /srv/http/htdocs/foswiki
35         echo "
36         Comment line 'Include conf/extra/httpd-foswiki.conf' in /etc/httpd/conf/httpd.conf  and restart apache.
37         "
38         if [ -d /srv/http/htdocs/foswiki-$1 ]; then
39                 echo "
40         Remove  /srv/http/htdocs/foswiki-$1, if you really dont need your wiki pages anymore.
41                 "
42         fi