Index: trunk/debs/wikimedia-task-appserver/debian/postinst |
— | — | @@ -58,7 +58,18 @@ |
59 | 59 | |
60 | 60 | checkmount amane:/export/upload /mnt/upload3 |
61 | 61 | checkmount amane:/export/math /mnt/math |
62 | | - echo "remember to sync this server before you start it!" |
| 62 | + |
| 63 | + CLUSTER=$(cat /etc/wikimedia-cluster) |
| 64 | + if [ $CLUSTER="pmtpa" ] |
| 65 | + then |
| 66 | + rsync -a /home/wikipedia/conf/httpd/ /usr/local/apache/conf |
| 67 | + |
| 68 | + PATH=$PATH:/home/wikipedia/bin |
| 69 | + sync-common |
| 70 | + apache-start |
| 71 | + else |
| 72 | + echo "remember to sync this server before you start it!" |
| 73 | + fi |
63 | 74 | ;; |
64 | 75 | |
65 | 76 | abort-upgrade|abort-remove|abort-deconfigure) |
Index: trunk/debs/wikimedia-task-appserver/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-task-appserver (1.18) feisty; urgency=low |
| 3 | + |
| 4 | + * Put the Mediawiki sync scripts in the postinst |
| 5 | + |
| 6 | + -- Mark Bergsma <mark@wikimedia.org> Thu, 30 Aug 2007 12:53:02 +0000 |
| 7 | + |
2 | 8 | wikimedia-task-appserver (1.17) feisty; urgency=low |
3 | 9 | |
4 | 10 | * log_errors=On |