[Please keep me in the CC as I am not subscribed to the list.] I have attached a patch for a change I would like to make to shorewall-common's debconf template. Any comments or suggestions? Also, what is the proper procedure to then call for translation updates? Regards, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com
Index: shorewall-common.templates =================================================================== --- shorewall-common.templates (revision 8505) +++ shorewall-common.templates (working copy) @@ -27,3 +27,13 @@ be checked carefully before the firewall is restarted. . Please choose whether you want to restart Shorewall immediately. + +Template: shorewall-common/invalid_config +Type: note +_Description: Invalid Shorewall configuration detected + You have configured Shorewall to restart on upgrade. + . + However, Shorewall has detected that you have an invalid + configuration and so will not be restarted. If you want + Shorewall restarted, fix your configuration and restart + manually using 'invoke-rc.d shorewall restart'. Index: shorewall-common.postinst =================================================================== --- shorewall-common.postinst (revision 8505) +++ shorewall-common.postinst (working copy) @@ -31,11 +31,16 @@ if [ "$restart" = "true" ] then - if [ -x "/usr/sbin/invoke-rc.d" ] - then - invoke-rc.d shorewall restart + /sbin/shorewall check + if [ "$?" = "0" ] + if [ -x "/usr/sbin/invoke-rc.d" ] + then + invoke-rc.d shorewall restart + else + /etc/init.d/shorewall restart + fi else - /etc/init.d/shorewall restart + db_input critical shorewall-common/invalid_config || true fi fi ;;
Attachment:
signature.asc
Description: Digital signature