Index: trunk/debs/wikimedia-apache-config-appserver/debian/postinst |
— | — | @@ -19,6 +19,26 @@ |
20 | 20 | |
21 | 21 | case "$1" in |
22 | 22 | configure) |
| 23 | + echo '/^# BEGIN WIKIMEDIA APACHE RULES/,/^# END WIKIMEDIA APACHE RULES/d |
| 24 | +wq' | ed /etc/sudoers || true |
| 25 | + echo '# BEGIN WIKIMEDIA APACHE RULES |
| 26 | +User_Alias ADMINS = %wikidev |
| 27 | +User_Alias WIKIUSER = apache,%wikidev |
| 28 | +Cmnd_Alias ADMIN_COMMANDS = \ |
| 29 | +/usr/local/apache/bin/apachectl, \ |
| 30 | +/home/wikipedia/sbin/apache-kill-it, \ |
| 31 | +/home/wikipedia/sbin/sync-common-it, \ |
| 32 | +/home/wikipedia/sbin/sync-common-php, \ |
| 33 | +/home/wikipedia/sbin/scap14-2, \ |
| 34 | +/home/wikipedia/sbin/scap15-2, \ |
| 35 | +/home/wikipedia/sbin/unscap-2, \ |
| 36 | +/home/wikipedia/sbin/set-group-write2, \ |
| 37 | +/home/wikipedia/sbin/run-mysql-test, \ |
| 38 | +/usr/bin/renice |
| 39 | +ADMINS ALL= NOPASSWD: ADMIN_COMMANDS |
| 40 | +WIKIUSER ALL=NOPASSWD: /home/wikipedia/sbin/wikiuser_pass_real |
| 41 | +# END WIKIMEDIA APACHE RULES' >>/etc/sudoers |
| 42 | + |
23 | 43 | ;; |
24 | 44 | |
25 | 45 | abort-upgrade|abort-remove|abort-deconfigure) |
Index: trunk/debs/wikimedia-apache-config-appserver/debian/postrm |
— | — | @@ -22,6 +22,9 @@ |
23 | 23 | purge) |
24 | 24 | dpkg-divert --package wikimedia-apache-config-appserver --remove --rename \ |
25 | 25 | --divert /etc/apache2/apache2.conf.default /etc/apache2/apache2.conf |
| 26 | + |
| 27 | + echo '/^# BEGIN WIKIMEDIA APACHE RULES/,/^# END WIKIMEDIA APACHE RULES/d |
| 28 | +wq' | ed /etc/sudoers || true |
26 | 29 | ;; |
27 | 30 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
28 | 31 | |
Index: trunk/debs/wikimedia-apache-config-appserver/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-apache-config-appserver (1.1) feisty; urgency=low |
| 3 | + |
| 4 | + * Include sudoers rules needed for apaches. |
| 5 | + |
| 6 | + -- River Tarnell <river@wikimedia.org> Sat, 12 May 2007 18:47:09 +0000 |
| 7 | + |
2 | 8 | wikimedia-apache-config-appserver (1.0) feisty; urgency=low |
3 | 9 | |
4 | 10 | * Initial release |