r22128 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22127‎ | r22128 | r22129 >
Date:18:48, 12 May 2007
Author:river
Status:old
Tags:
Comment:
wikimedia-apache-config-appserver (1.1) feisty; urgency=low

* Include sudoers rules needed for apaches.
Modified paths:
  • /trunk/debs/wikimedia-apache-config-appserver/debian/changelog (modified) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/postinst (modified) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/postrm (modified) (history)

Diff [purge]

Index: trunk/debs/wikimedia-apache-config-appserver/debian/postinst
@@ -19,6 +19,26 @@
2020
2121 case "$1" in
2222 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+
2343 ;;
2444
2545 abort-upgrade|abort-remove|abort-deconfigure)
Index: trunk/debs/wikimedia-apache-config-appserver/debian/postrm
@@ -22,6 +22,9 @@
2323 purge)
2424 dpkg-divert --package wikimedia-apache-config-appserver --remove --rename \
2525 --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
2629 ;;
2730 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
2831
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+
28 wikimedia-apache-config-appserver (1.0) feisty; urgency=low
39
410 * Initial release