Index: trunk/debs/wikimedia-task-appserver/debian/changelog |
— | — | @@ -1,3 +1,10 @@ |
| 2 | +wikimedia-task-appserver (1.39) hardy; urgency=medium |
| 3 | + |
| 4 | + * Factor out install of texvc executable in /usr/local/bin into separate |
| 5 | + sudo script install-common |
| 6 | + |
| 7 | + -- Mark Bergsma <mark@wikimedia.org> Thu, 18 Jun 2009 15:58:00 +0000 |
| 8 | + |
2 | 9 | wikimedia-task-appserver (1.38) hardy; urgency=low |
3 | 10 | |
4 | 11 | * Adapt sudoers file to new, /home-less situation |
Index: trunk/debs/wikimedia-task-appserver/debian/rules |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | install -d -m 0755 $(DESTDIR)/usr/bin |
60 | 60 | install -d -m 0755 $(DESTDIR)/usr/sbin |
61 | 61 | install -m 0750 sync-common apache-sanity-check apache-start check-time scap15-1skins scap15-1 $(DESTDIR)/usr/bin |
62 | | - install -m 0750 scap15-2 set-group-write2 $(DESTDIR)/usr/sbin |
| 62 | + install -m 0750 scap15-2 set-group-write2 install-common $(DESTDIR)/usr/sbin |
63 | 63 | |
64 | 64 | install -d -m 0750 $(DESTDIR)/var/lib/pybal-check/.ssh |
65 | 65 | install -m 0640 authorized_keys $(DESTDIR)/var/lib/pybal-check/.ssh/authorized_keys |
Index: trunk/debs/wikimedia-task-appserver/sync-common |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | rsync -r --exclude=.svn/ 10.0.5.8::common/php-1.5/math/ /var/tmp/texvc |
20 | 20 | cd /var/tmp/texvc |
21 | 21 | make -f Makefile texvc >/dev/null 2>/dev/null && echo ok || echo failed |
22 | | -cp /var/tmp/texvc/texvc /usr/local/bin/ |
| 22 | +sudo /usr/sbin/install-common |
23 | 23 | rm -rf /var/tmp/texvc |
24 | 24 | |
25 | 25 | # rsync common |
Index: trunk/debs/wikimedia-task-appserver/sudoers |
— | — | @@ -19,7 +19,14 @@ |
20 | 20 | /etc/init.d/apache2, \ |
21 | 21 | /usr/sbin/scap15-2, \ |
22 | 22 | /usr/sbin/set-group-write2, \ |
23 | | - /usr/bin/renice |
| 23 | + /usr/sbin/install-common, \ |
| 24 | + /usr/bin/renice, \ |
| 25 | + /home/wikipedia/sbin/apache-kill-it, \ |
| 26 | + /home/wikipedia/sbin/sync-common-it, \ |
| 27 | + /home/wikipedia/sbin/sync-common-php, \ |
| 28 | + /home/wikipedia/sbin/scap15-2, \ |
| 29 | + /home/wikipedia/sbin/unscap-2, \ |
| 30 | + /home/wikipedia/sbin/set-group-write2 |
24 | 31 | |
25 | 32 | # User privilege specification |
26 | 33 | root ALL=(ALL) ALL |
Index: trunk/debs/wikimedia-task-appserver/scap15-2 |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | rsync -a 10.0.5.8::common/php-1.5/ /usr/local/apache/common-local/php-1.5 && echo ok || echo failed |
8 | 8 | |
9 | 9 | # Install compiled executables |
10 | | -cp /var/tmp/texvc/texvc /usr/local/bin/ |
| 10 | +/usr/sbin/install-common |
11 | 11 | |
12 | 12 | echo -n "Restarting apache... " |
13 | 13 | /usr/bin/apache-sanity-check && ( sudo /usr/sbin/apache2ctl stop; sudo killall -9 apache2;sleep 3; sudo /usr/sbin/apache2ctl start ) |
Index: trunk/debs/wikimedia-task-appserver/install-common |
— | — | @@ -0,0 +1,3 @@ |
| 2 | +#!/bin/sh |
| 3 | + |
| 4 | +cp /var/tmp/texvc/texvc /usr/local/bin/ |